org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.WUPropertiesToReturn Maven / Gradle / Ivy
Show all versions of wsclient Show documentation
/**
* 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
}