org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_56.WUInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wsclient Show documentation
Show all versions of wsclient Show documentation
This project allows a user to interact with ESP services in a controlled manner. The API calls available under org.hpccsystems.ws.client.platform allow for a user to target ESP's across multiple environments running a range of hpccsystems-platform versions. There is no guarantee that if a user utilizes org.hpccsystems.ws.client.gen generated stub code from wsdl, that the calls will be backwards compatible with older hpccsystems-platform versions.
/**
* WUInfo.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.7.9 Built on : Nov 16, 2018 (12:06:07 GMT)
*/
package org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_56;
/**
* 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", "ns8");
/**
* field for Wuid
*/
protected java.lang.String localWuid;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localWuidTracker = false;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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 isWuidSpecified() {
return localWuidTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getWuid() {
return localWuid;
}
/**
* Auto generated setter method
* @param param Wuid
*/
public void setWuid(java.lang.String param) {
localWuidTracker = param != null;
this.localWuid = param;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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 (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 "ns8";
}
return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
}
/**
* Utility method to write an element start tag.
*/
private void writeStartElement(java.lang.String prefix,
java.lang.String namespace, java.lang.String localPart,
javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException {
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
if (writerPrefix != null) {
xmlWriter.writeStartElement(writerPrefix, localPart, namespace);
} else {
if (namespace.length() == 0) {
prefix = "";
} else if (prefix == null) {
prefix = generatePrefix(namespace);
}
xmlWriter.writeStartElement(prefix, localPart, namespace);
xmlWriter.writeNamespace(prefix, namespace);
xmlWriter.setPrefix(prefix, namespace);
}
}
/**
* Util method to write an attribute with the ns prefix
*/
private void writeAttribute(java.lang.String prefix,
java.lang.String namespace, java.lang.String attName,
java.lang.String attValue, javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException {
java.lang.String writerPrefix = xmlWriter.getPrefix(namespace);
if (writerPrefix != null) {
xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue);
} else {
xmlWriter.writeNamespace(prefix, namespace);
xmlWriter.setPrefix(prefix, namespace);
xmlWriter.writeAttribute(prefix, namespace, attName, attValue);
}
}
/**
* Util method to write an attribute without the ns prefix
*/
private void writeAttribute(java.lang.String namespace,
java.lang.String attName, java.lang.String attValue,
javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException {
if (namespace.equals("")) {
xmlWriter.writeAttribute(attName, attValue);
} else {
xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace),
namespace, attName, attValue);
}
}
/**
* Util method to write an attribute without the ns prefix
*/
private void writeQNameAttribute(java.lang.String namespace,
java.lang.String attName, javax.xml.namespace.QName qname,
javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException {
java.lang.String attributeNamespace = qname.getNamespaceURI();
java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace);
if (attributePrefix == null) {
attributePrefix = registerPrefix(xmlWriter, attributeNamespace);
}
java.lang.String attributeValue;
if (attributePrefix.trim().length() > 0) {
attributeValue = attributePrefix + ":" + qname.getLocalPart();
} else {
attributeValue = qname.getLocalPart();
}
if (namespace.equals("")) {
xmlWriter.writeAttribute(attName, attributeValue);
} else {
registerPrefix(xmlWriter, namespace);
xmlWriter.writeAttribute(attributePrefix, namespace, attName,
attributeValue);
}
}
/**
* method to handle Qnames
*/
private void writeQName(javax.xml.namespace.QName qname,
javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException {
java.lang.String namespaceURI = qname.getNamespaceURI();
if (namespaceURI != null) {
java.lang.String prefix = xmlWriter.getPrefix(namespaceURI);
if (prefix == null) {
prefix = generatePrefix(namespaceURI);
xmlWriter.writeNamespace(prefix, namespaceURI);
xmlWriter.setPrefix(prefix, namespaceURI);
}
if (prefix.trim().length() > 0) {
xmlWriter.writeCharacters(prefix + ":" +
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
qname));
} else {
// i.e this is the default namespace
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
qname));
}
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
qname));
}
}
private void writeQNames(javax.xml.namespace.QName[] qnames,
javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException {
if (qnames != null) {
// we have to store this data until last moment since it is not possible to write any
// namespace data after writing the charactor data
java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer();
java.lang.String namespaceURI = null;
java.lang.String prefix = null;
for (int i = 0; i < qnames.length; i++) {
if (i > 0) {
stringToWrite.append(" ");
}
namespaceURI = qnames[i].getNamespaceURI();
if (namespaceURI != null) {
prefix = xmlWriter.getPrefix(namespaceURI);
if ((prefix == null) || (prefix.length() == 0)) {
prefix = generatePrefix(namespaceURI);
xmlWriter.writeNamespace(prefix, namespaceURI);
xmlWriter.setPrefix(prefix, namespaceURI);
}
if (prefix.trim().length() > 0) {
stringToWrite.append(prefix).append(":")
.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
qnames[i]));
} else {
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
qnames[i]));
}
} else {
stringToWrite.append(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
qnames[i]));
}
}
xmlWriter.writeCharacters(stringToWrite.toString());
}
}
/**
* Register a namespace prefix
*/
private java.lang.String registerPrefix(
javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace)
throws javax.xml.stream.XMLStreamException {
java.lang.String prefix = xmlWriter.getPrefix(namespace);
if (prefix == null) {
prefix = generatePrefix(namespace);
javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext();
while (true) {
java.lang.String uri = nsContext.getNamespaceURI(prefix);
if ((uri == null) || (uri.length() == 0)) {
break;
}
prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix();
}
xmlWriter.writeNamespace(prefix, namespace);
xmlWriter.setPrefix(prefix, namespace);
}
return prefix;
}
/**
* Factory class that keeps the parse method
*/
public static class Factory {
private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class);
/**
* static method to create the object
* Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable
* If this object is not an element, it is a complex type and the reader is at the event just after the outer start element
* Postcondition: If this object is an element, the reader is positioned at 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.v1_56.ExtensionMapper.getTypeObject(nsUri,
type, reader);
}
}
}
// Note all attributes that were handled. Used to differ normal attributes
// from anyAttributes.
java.util.Vector handledAttributes = 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",
"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
}