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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 This file was auto-generated from WSDL by the 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 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