All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ECLWorkunitLW Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 9.6.10-1
Show newest version
/**
 * ECLWorkunitLW.java
 *
 * 

This file was auto-generated from WSDL by the Apache Axis2 version: 1.8.1 Built on : Jun 07, * 2022 (03:47:13 EDT) */ package org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest; /** ECLWorkunitLW bean class */ @SuppressWarnings({"unchecked", "unused"}) public class ECLWorkunitLW implements org.apache.axis2.databinding.ADBBean { /* This type was generated from the piece of schema that had name = ECLWorkunitLW Namespace URI = urn:hpccsystems:ws:wsworkunits Namespace Prefix = ns1 */ /** field for Wuid */ protected java.lang.String localWuid; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localWuidTracker = false; public boolean isWuidSpecified() { return localWuidTracker; } /** * Auto generated getter method * * @return java.lang.String */ public java.lang.String getWuid() { return localWuid; } /** * Auto generated setter method * * @param param Wuid */ public void setWuid(java.lang.String param) { localWuidTracker = param != null; this.localWuid = param; } /** field for Owner */ protected java.lang.String localOwner; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localOwnerTracker = false; public boolean isOwnerSpecified() { return localOwnerTracker; } /** * Auto generated getter method * * @return java.lang.String */ public java.lang.String getOwner() { return localOwner; } /** * Auto generated setter method * * @param param Owner */ public void setOwner(java.lang.String param) { localOwnerTracker = param != null; this.localOwner = param; } /** field for JobName */ protected java.lang.String localJobName; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localJobNameTracker = false; public boolean isJobNameSpecified() { return localJobNameTracker; } /** * Auto generated getter method * * @return java.lang.String */ public java.lang.String getJobName() { return localJobName; } /** * Auto generated setter method * * @param param JobName */ public void setJobName(java.lang.String param) { localJobNameTracker = param != null; this.localJobName = param; } /** field for WuScope */ protected java.lang.String localWuScope; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localWuScopeTracker = false; public boolean isWuScopeSpecified() { return localWuScopeTracker; } /** * Auto generated getter method * * @return java.lang.String */ public java.lang.String getWuScope() { return localWuScope; } /** * Auto generated setter method * * @param param WuScope */ public void setWuScope(java.lang.String param) { localWuScopeTracker = param != null; this.localWuScope = param; } /** field for ClusterName */ protected java.lang.String localClusterName; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localClusterNameTracker = false; public boolean isClusterNameSpecified() { return localClusterNameTracker; } /** * Auto generated getter method * * @return java.lang.String */ public java.lang.String getClusterName() { return localClusterName; } /** * Auto generated setter method * * @param param ClusterName */ public void setClusterName(java.lang.String param) { localClusterNameTracker = param != null; this.localClusterName = param; } /** field for State */ protected int localState; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localStateTracker = false; public boolean isStateSpecified() { return localStateTracker; } /** * Auto generated getter method * * @return int */ public int getState() { return localState; } /** * Auto generated setter method * * @param param State */ public void setState(int param) { // setting primitive attribute tracker to true localStateTracker = param != java.lang.Integer.MIN_VALUE; this.localState = param; } /** field for StateDesc */ protected java.lang.String localStateDesc; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localStateDescTracker = false; public boolean isStateDescSpecified() { return localStateDescTracker; } /** * Auto generated getter method * * @return java.lang.String */ public java.lang.String getStateDesc() { return localStateDesc; } /** * Auto generated setter method * * @param param StateDesc */ public void setStateDesc(java.lang.String param) { localStateDescTracker = param != null; this.localStateDesc = param; } /** field for Action */ protected int localAction; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localActionTracker = false; public boolean isActionSpecified() { return localActionTracker; } /** * Auto generated getter method * * @return int */ public int getAction() { return localAction; } /** * Auto generated setter method * * @param param Action */ public void setAction(int param) { // setting primitive attribute tracker to true localActionTracker = param != java.lang.Integer.MIN_VALUE; this.localAction = param; } /** field for ActionDesc */ protected java.lang.String localActionDesc; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localActionDescTracker = false; public boolean isActionDescSpecified() { return localActionDescTracker; } /** * Auto generated getter method * * @return java.lang.String */ public java.lang.String getActionDesc() { return localActionDesc; } /** * Auto generated setter method * * @param param ActionDesc */ public void setActionDesc(java.lang.String param) { localActionDescTracker = param != null; this.localActionDesc = param; } /** field for Priority */ protected int localPriority; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localPriorityTracker = false; public boolean isPrioritySpecified() { return localPriorityTracker; } /** * Auto generated getter method * * @return int */ public int getPriority() { return localPriority; } /** * Auto generated setter method * * @param param Priority */ public void setPriority(int param) { // setting primitive attribute tracker to true localPriorityTracker = param != java.lang.Integer.MIN_VALUE; this.localPriority = param; } /** field for PriorityDesc */ protected java.lang.String localPriorityDesc; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localPriorityDescTracker = false; public boolean isPriorityDescSpecified() { return localPriorityDescTracker; } /** * Auto generated getter method * * @return java.lang.String */ public java.lang.String getPriorityDesc() { return localPriorityDesc; } /** * Auto generated setter method * * @param param PriorityDesc */ public void setPriorityDesc(java.lang.String param) { localPriorityDescTracker = param != null; this.localPriorityDesc = param; } /** field for PriorityLevel */ protected int localPriorityLevel; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localPriorityLevelTracker = false; public boolean isPriorityLevelSpecified() { return localPriorityLevelTracker; } /** * Auto generated getter method * * @return int */ public int getPriorityLevel() { return localPriorityLevel; } /** * Auto generated setter method * * @param param PriorityLevel */ public void setPriorityLevel(int param) { // setting primitive attribute tracker to true localPriorityLevelTracker = param != java.lang.Integer.MIN_VALUE; this.localPriorityLevel = param; } /** field for IsProtected */ protected boolean localIsProtected; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localIsProtectedTracker = false; public boolean isIsProtectedSpecified() { return localIsProtectedTracker; } /** * Auto generated getter method * * @return boolean */ public boolean getIsProtected() { return localIsProtected; } /** * Auto generated setter method * * @param param IsProtected */ public void setIsProtected(boolean param) { // setting primitive attribute tracker to true localIsProtectedTracker = true; this.localIsProtected = param; } /** field for DateTimeScheduled */ protected java.util.Calendar localDateTimeScheduled; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localDateTimeScheduledTracker = false; public boolean isDateTimeScheduledSpecified() { return localDateTimeScheduledTracker; } /** * Auto generated getter method * * @return java.util.Calendar */ public java.util.Calendar getDateTimeScheduled() { return localDateTimeScheduled; } /** * Auto generated setter method * * @param param DateTimeScheduled */ public void setDateTimeScheduled(java.util.Calendar param) { localDateTimeScheduledTracker = param != null; this.localDateTimeScheduled = param; } /** field for TotalClusterTime */ protected org.apache.axis2.databinding.types.UnsignedInt localTotalClusterTime; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localTotalClusterTimeTracker = false; public boolean isTotalClusterTimeSpecified() { return localTotalClusterTimeTracker; } /** * Auto generated getter method * * @return org.apache.axis2.databinding.types.UnsignedInt */ public org.apache.axis2.databinding.types.UnsignedInt getTotalClusterTime() { return localTotalClusterTime; } /** * Auto generated setter method * * @param param TotalClusterTime */ public void setTotalClusterTime(org.apache.axis2.databinding.types.UnsignedInt param) { localTotalClusterTimeTracker = param != null; this.localTotalClusterTime = param; } /** field for ApplicationValues */ protected org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue localApplicationValues; /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localApplicationValuesTracker = false; public boolean isApplicationValuesSpecified() { return localApplicationValuesTracker; } /** * Auto generated getter method * * @return org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue */ public org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue getApplicationValues() { return localApplicationValues; } /** * Auto generated setter method * * @param param ApplicationValues */ public void setApplicationValues( org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue param) { localApplicationValuesTracker = param != null; this.localApplicationValues = param; } /** field for NoAccess */ protected boolean localNoAccess = org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean("false"); /* This tracker boolean wil be used to detect whether the user called the set method * for this attribute. It will be used to determine whether to include this field * in the serialized XML */ protected boolean localNoAccessTracker = false; public boolean isNoAccessSpecified() { return localNoAccessTracker; } /** * Auto generated getter method * * @return boolean */ public boolean getNoAccess() { return localNoAccess; } /** * Auto generated setter method * * @param param NoAccess */ public void setNoAccess(boolean param) { // setting primitive attribute tracker to true localNoAccessTracker = true; this.localNoAccess = param; } /** * @param parentQName * @param factory * @return org.apache.axiom.om.OMElement */ public org.apache.axiom.om.OMElement getOMElement( final javax.xml.namespace.QName parentQName, final org.apache.axiom.om.OMFactory factory) throws org.apache.axis2.databinding.ADBException { return factory.createOMElement( new org.apache.axis2.databinding.ADBDataSource(this, parentQName)); } public void serialize( final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { serialize(parentQName, xmlWriter, false); } public void serialize( final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter, boolean serializeType) throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { java.lang.String prefix = null; java.lang.String namespace = null; prefix = parentQName.getPrefix(); namespace = parentQName.getNamespaceURI(); writeStartElement(prefix, namespace, parentQName.getLocalPart(), xmlWriter); if (serializeType) { java.lang.String namespacePrefix = registerPrefix(xmlWriter, "urn:hpccsystems:ws:wsworkunits"); if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)) { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", namespacePrefix + ":ECLWorkunitLW", xmlWriter); } else { writeAttribute( "xsi", "http://www.w3.org/2001/XMLSchema-instance", "type", "ECLWorkunitLW", xmlWriter); } } if (localWuidTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "Wuid", xmlWriter); if (localWuid == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("Wuid cannot be null!!"); } else { xmlWriter.writeCharacters(localWuid); } xmlWriter.writeEndElement(); } if (localOwnerTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "Owner", xmlWriter); if (localOwner == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("Owner cannot be null!!"); } else { xmlWriter.writeCharacters(localOwner); } xmlWriter.writeEndElement(); } if (localJobNameTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "JobName", xmlWriter); if (localJobName == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("JobName cannot be null!!"); } else { xmlWriter.writeCharacters(localJobName); } xmlWriter.writeEndElement(); } if (localWuScopeTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "WuScope", xmlWriter); if (localWuScope == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("WuScope cannot be null!!"); } else { xmlWriter.writeCharacters(localWuScope); } xmlWriter.writeEndElement(); } if (localClusterNameTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "ClusterName", xmlWriter); if (localClusterName == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("ClusterName cannot be null!!"); } else { xmlWriter.writeCharacters(localClusterName); } xmlWriter.writeEndElement(); } if (localStateTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "State", xmlWriter); if (localState == java.lang.Integer.MIN_VALUE) { throw new org.apache.axis2.databinding.ADBException("State cannot be null!!"); } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localState)); } xmlWriter.writeEndElement(); } if (localStateDescTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "StateDesc", xmlWriter); if (localStateDesc == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("StateDesc cannot be null!!"); } else { xmlWriter.writeCharacters(localStateDesc); } xmlWriter.writeEndElement(); } if (localActionTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "Action", xmlWriter); if (localAction == java.lang.Integer.MIN_VALUE) { throw new org.apache.axis2.databinding.ADBException("Action cannot be null!!"); } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAction)); } xmlWriter.writeEndElement(); } if (localActionDescTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "ActionDesc", xmlWriter); if (localActionDesc == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("ActionDesc cannot be null!!"); } else { xmlWriter.writeCharacters(localActionDesc); } xmlWriter.writeEndElement(); } if (localPriorityTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "Priority", xmlWriter); if (localPriority == java.lang.Integer.MIN_VALUE) { throw new org.apache.axis2.databinding.ADBException("Priority cannot be null!!"); } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriority)); } xmlWriter.writeEndElement(); } if (localPriorityDescTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "PriorityDesc", xmlWriter); if (localPriorityDesc == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("PriorityDesc cannot be null!!"); } else { xmlWriter.writeCharacters(localPriorityDesc); } xmlWriter.writeEndElement(); } if (localPriorityLevelTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "PriorityLevel", xmlWriter); if (localPriorityLevel == java.lang.Integer.MIN_VALUE) { throw new org.apache.axis2.databinding.ADBException("PriorityLevel cannot be null!!"); } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPriorityLevel)); } xmlWriter.writeEndElement(); } if (localIsProtectedTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "IsProtected", xmlWriter); if (false) { throw new org.apache.axis2.databinding.ADBException("IsProtected cannot be null!!"); } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsProtected)); } xmlWriter.writeEndElement(); } if (localDateTimeScheduledTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "DateTimeScheduled", xmlWriter); if (localDateTimeScheduled == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("DateTimeScheduled cannot be null!!"); } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString( localDateTimeScheduled)); } xmlWriter.writeEndElement(); } if (localTotalClusterTimeTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "TotalClusterTime", xmlWriter); if (localTotalClusterTime == null) { // write the nil attribute throw new org.apache.axis2.databinding.ADBException("TotalClusterTime cannot be null!!"); } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString( localTotalClusterTime)); } xmlWriter.writeEndElement(); } if (localApplicationValuesTracker) { if (localApplicationValues == null) { throw new org.apache.axis2.databinding.ADBException("ApplicationValues cannot be null!!"); } localApplicationValues.serialize( new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ApplicationValues"), xmlWriter); } if (localNoAccessTracker) { namespace = "urn:hpccsystems:ws:wsworkunits"; writeStartElement(null, namespace, "NoAccess", xmlWriter); if (false) { throw new org.apache.axis2.databinding.ADBException("NoAccess cannot be null!!"); } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localNoAccess)); } xmlWriter.writeEndElement(); } xmlWriter.writeEndElement(); } private static java.lang.String generatePrefix(java.lang.String namespace) { if (namespace.equals("urn:hpccsystems:ws:wsworkunits")) { return "ns1"; } return org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); } /** Utility method to write an element start tag. */ private void writeStartElement( java.lang.String prefix, java.lang.String namespace, java.lang.String localPart, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); if (writerPrefix != null) { xmlWriter.writeStartElement(writerPrefix, localPart, namespace); } else { if (namespace.length() == 0) { prefix = ""; } else if (prefix == null) { prefix = generatePrefix(namespace); } xmlWriter.writeStartElement(prefix, localPart, namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } } /** Util method to write an attribute with the ns prefix */ private void writeAttribute( java.lang.String prefix, java.lang.String namespace, java.lang.String attName, java.lang.String attValue, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); if (writerPrefix != null) { xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue); } else { xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); xmlWriter.writeAttribute(prefix, namespace, attName, attValue); } } /** Util method to write an attribute without the ns prefix */ private void writeAttribute( java.lang.String namespace, java.lang.String attName, java.lang.String attValue, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { if (namespace.equals("")) { xmlWriter.writeAttribute(attName, attValue); } else { xmlWriter.writeAttribute(registerPrefix(xmlWriter, namespace), namespace, attName, attValue); } } /** Util method to write an attribute without the ns prefix */ private void writeQNameAttribute( java.lang.String namespace, java.lang.String attName, javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String attributeNamespace = qname.getNamespaceURI(); java.lang.String attributePrefix = xmlWriter.getPrefix(attributeNamespace); if (attributePrefix == null) { attributePrefix = registerPrefix(xmlWriter, attributeNamespace); } java.lang.String attributeValue; if (attributePrefix.trim().length() > 0) { attributeValue = attributePrefix + ":" + qname.getLocalPart(); } else { attributeValue = qname.getLocalPart(); } if (namespace.equals("")) { xmlWriter.writeAttribute(attName, attributeValue); } else { registerPrefix(xmlWriter, namespace); xmlWriter.writeAttribute(attributePrefix, namespace, attName, attributeValue); } } /** method to handle Qnames */ private void writeQName( javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String namespaceURI = qname.getNamespaceURI(); if (namespaceURI != null) { java.lang.String prefix = xmlWriter.getPrefix(namespaceURI); if (prefix == null) { prefix = generatePrefix(namespaceURI); xmlWriter.writeNamespace(prefix, namespaceURI); xmlWriter.setPrefix(prefix, namespaceURI); } if (prefix.trim().length() > 0) { xmlWriter.writeCharacters( prefix + ":" + org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); } else { // i.e this is the default namespace xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); } } else { xmlWriter.writeCharacters( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qname)); } } private void writeQNames( javax.xml.namespace.QName[] qnames, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { if (qnames != null) { // we have to store this data until last moment since it is not possible to write any // namespace data after writing the charactor data java.lang.StringBuffer stringToWrite = new java.lang.StringBuffer(); java.lang.String namespaceURI = null; java.lang.String prefix = null; for (int i = 0; i < qnames.length; i++) { if (i > 0) { stringToWrite.append(" "); } namespaceURI = qnames[i].getNamespaceURI(); if (namespaceURI != null) { prefix = xmlWriter.getPrefix(namespaceURI); if ((prefix == null) || (prefix.length() == 0)) { prefix = generatePrefix(namespaceURI); xmlWriter.writeNamespace(prefix, namespaceURI); xmlWriter.setPrefix(prefix, namespaceURI); } if (prefix.trim().length() > 0) { stringToWrite .append(prefix) .append(":") .append( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); } else { stringToWrite.append( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); } } else { stringToWrite.append( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(qnames[i])); } } xmlWriter.writeCharacters(stringToWrite.toString()); } } /** Register a namespace prefix */ private java.lang.String registerPrefix( javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException { java.lang.String prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); javax.xml.namespace.NamespaceContext nsContext = xmlWriter.getNamespaceContext(); while (true) { java.lang.String uri = nsContext.getNamespaceURI(prefix); if (uri == null || uri.length() == 0) { break; } prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); } xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } return prefix; } /** Factory class that keeps the parse method */ public static class Factory { private static org.apache.commons.logging.Log log = org.apache.commons.logging.LogFactory.getLog(Factory.class); /** * static method to create the object Precondition: If this object is an element, the current or * next start element starts this object and any intervening reader events are ignorable If this * object is not an element, it is a complex type and the reader is at the event just after the * outer start element Postcondition: If this object is an element, the reader is positioned at * its end element If this object is a complex type, the reader is positioned at the end element * of its outer element */ public static ECLWorkunitLW parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { ECLWorkunitLW object = new ECLWorkunitLW(); int event; javax.xml.namespace.QName currentQName = null; java.lang.String nillableValue = null; java.lang.String prefix = ""; java.lang.String namespaceuri = ""; try { while (!reader.isStartElement() && !reader.isEndElement()) reader.next(); currentQName = reader.getName(); if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type") != null) { java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "type"); if (fullTypeName != null) { java.lang.String nsPrefix = null; if (fullTypeName.indexOf(":") > -1) { nsPrefix = fullTypeName.substring(0, fullTypeName.indexOf(":")); } nsPrefix = nsPrefix == null ? "" : nsPrefix; java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(":") + 1); if (!"ECLWorkunitLW".equals(type)) { // find namespace for the prefix java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix); return (ECLWorkunitLW) org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ExtensionMapper .getTypeObject(nsUri, type, reader); } } } // Note all attributes that were handled. Used to differ normal attributes // from anyAttributes. java.util.Vector handledAttributes = new java.util.Vector(); reader.next(); while (!reader.isEndElement()) { if (reader.isStartElement()) { if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Wuid") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "Wuid" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setWuid( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Owner") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "Owner" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setOwner( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "JobName") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "JobName" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setJobName( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "WuScope") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "WuScope" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setWuScope( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ClusterName") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "ClusterName" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setClusterName( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "State") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "State" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setState( org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "StateDesc") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "StateDesc" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setStateDesc( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Action") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "Action" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setAction( org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "ActionDesc") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "ActionDesc" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setActionDesc( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "Priority") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "Priority" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setPriority( org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityDesc") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "PriorityDesc" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setPriorityDesc( org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "PriorityLevel") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "PriorityLevel" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setPriorityLevel( org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "IsProtected") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "IsProtected" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setIsProtected( org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName( "urn:hpccsystems:ws:wsworkunits", "DateTimeScheduled") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "DateTimeScheduled" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setDateTimeScheduled( org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName( "urn:hpccsystems:ws:wsworkunits", "TotalClusterTime") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "TotalClusterTime" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setTotalClusterTime( org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(content)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName( "urn:hpccsystems:ws:wsworkunits", "ApplicationValues") .equals(reader.getName())) { object.setApplicationValues( org.hpccsystems.ws.client.gen.axis2.wsworkunits.latest.ArrayOfApplicationValue .Factory.parse(reader)); reader.next(); } // End of if for expected property start element else if (reader.isStartElement() && new javax.xml.namespace.QName("urn:hpccsystems:ws:wsworkunits", "NoAccess") .equals(reader.getName())) { nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance", "nil"); if ("true".equals(nillableValue) || "1".equals(nillableValue)) { throw new org.apache.axis2.databinding.ADBException( "The element: " + "NoAccess" + " cannot be null"); } java.lang.String content = reader.getElementText(); object.setNoAccess( org.apache.axis2.databinding.utils.ConverterUtil.convertToBoolean(content)); reader.next(); } // End of if for expected property start element else { // 3 - A start element we are not expecting indicates an invalid parameter was passed throw new org.apache.axis2.databinding.ADBException( "Unexpected subelement " + reader.getName()); } } else { reader.next(); } } // end of while loop } catch (javax.xml.stream.XMLStreamException e) { throw new java.lang.Exception(e); } return object; } } // end of factory class }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy