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