org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.WUAction 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.
/**
* WUAction.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_79;
/**
* 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", "ns8");
/**
* field for Wuids
*/
protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.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;
/**
* field for WUActionType
*/
protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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;
/**
* 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 isWuidsSpecified() {
return localWuidsTracker;
}
/**
* Auto generated getter method
* @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.EspStringArray
*/
public org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.EspStringArray getWuids() {
return localWuids;
}
/**
* Auto generated setter method
* @param param Wuids
*/
public void setWuids(
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.EspStringArray param) {
localWuidsTracker = param != null;
this.localWuids = param;
}
public boolean isWUActionTypeSpecified() {
return localWUActionTypeTracker;
}
/**
* Auto generated getter method
* @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.ECLWUActions
*/
public org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.ECLWUActions getWUActionType() {
return localWUActionType;
}
/**
* Auto generated setter method
* @param param WUActionType
*/
public void setWUActionType(
org.hpccsystems.ws.client.gen.axis2.wsworkunits.v1_79.ECLWUActions param) {
localWUActionTypeTracker = param != null;
this.localWUActionType = param;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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;
}
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 "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 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.v1_79.ExtensionMapper.getTypeObject(nsUri,
type, reader);
}
}
}
// Note all attributes that were handled. Used to differ normal attributes
// from anyAttributes.
java.util.Vector handledAttributes = 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.v1_79.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.v1_79.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
}