/**
* Retail_M.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.6.2 Built on : Apr 17, 2012 (05:34:40 IST)
*/
package com.topsun.posclient.webservice.dto;
/**
* Retail_M bean class
*/
@SuppressWarnings({"unchecked","unused"})
public class Retail_M
implements org.apache.axis2.databinding.ADBBean{
/* This type was generated from the piece of schema that had
name = retail_M
Namespace URI = http://www.topsunit.com/rms
Namespace Prefix = ns1
*/
/**
* field for EmployeeID
*/
protected int localEmployeeID ;
/* 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 localEmployeeIDTracker = false ;
public boolean isEmployeeIDSpecified(){
return localEmployeeIDTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getEmployeeID(){
return localEmployeeID;
}
/**
* Auto generated setter method
* @param param EmployeeID
*/
public void setEmployeeID(int param){
// setting primitive attribute tracker to true
localEmployeeIDTracker =
param != java.lang.Integer.MIN_VALUE;
this.localEmployeeID=param;
}
/**
* field for IsReplace
*/
protected int localIsReplace ;
/* 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 localIsReplaceTracker = false ;
public boolean isIsReplaceSpecified(){
return localIsReplaceTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getIsReplace(){
return localIsReplace;
}
/**
* Auto generated setter method
* @param param IsReplace
*/
public void setIsReplace(int param){
localIsReplaceTracker = true;
this.localIsReplace=param;
}
/**
* field for MATNR
*/
protected java.lang.String localMATNR ;
/* 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 localMATNRTracker = false ;
public boolean isMATNRSpecified(){
return localMATNRTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getMATNR(){
return localMATNR;
}
/**
* Auto generated setter method
* @param param MATNR
*/
public void setMATNR(java.lang.String param){
localMATNRTracker = true;
this.localMATNR=param;
}
/**
* field for Matkl
*/
protected java.lang.String localMatkl ;
/* 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 localMatklTracker = false ;
public boolean isMatklSpecified(){
return localMatklTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getMatkl(){
return localMatkl;
}
/**
* Auto generated setter method
* @param param Matkl
*/
public void setMatkl(java.lang.String param){
localMatklTracker = true;
this.localMatkl=param;
}
/**
* field for LineNum
*/
protected int localLineNum ;
/* 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 localLineNumTracker = false ;
public boolean isLineNumSpecified(){
return localLineNumTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getLineNum(){
return localLineNum;
}
/**
* Auto generated setter method
* @param param LineNum
*/
public void setLineNum(int param){
// setting primitive attribute tracker to true
localLineNumTracker =
param != java.lang.Integer.MIN_VALUE;
this.localLineNum=param;
}
/**
* field for ItemID
*/
protected int localItemID ;
/* 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 localItemIDTracker = false ;
public boolean isItemIDSpecified(){
return localItemIDTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getItemID(){
return localItemID;
}
/**
* Auto generated setter method
* @param param ItemID
*/
public void setItemID(int param){
// setting primitive attribute tracker to true
localItemIDTracker =
param != java.lang.Integer.MIN_VALUE;
this.localItemID=param;
}
/**
* field for ItemCode
*/
protected java.lang.String localItemCode ;
/* 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 localItemCodeTracker = false ;
public boolean isItemCodeSpecified(){
return localItemCodeTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getItemCode(){
return localItemCode;
}
/**
* Auto generated setter method
* @param param ItemCode
*/
public void setItemCode(java.lang.String param){
localItemCodeTracker = true;
this.localItemCode=param;
}
/**
* field for PalWeight
*/
protected java.math.BigDecimal localPalWeight ;
/* 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 localPalWeightTracker = false ;
public boolean isPalWeightSpecified(){
return localPalWeightTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getPalWeight(){
return localPalWeight;
}
/**
* Auto generated setter method
* @param param PalWeight
*/
public void setPalWeight(java.math.BigDecimal param){
localPalWeightTracker = true;
this.localPalWeight=param;
}
/**
* field for PalAmount
*/
protected java.math.BigDecimal localPalAmount ;
/* 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 localPalAmountTracker = false ;
public boolean isPalAmountSpecified(){
return localPalAmountTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getPalAmount(){
return localPalAmount;
}
/**
* Auto generated setter method
* @param param PalAmount
*/
public void setPalAmount(java.math.BigDecimal param){
localPalAmountTracker = true;
this.localPalAmount=param;
}
/**
* field for SourceCode
*/
protected java.lang.String localSourceCode ;
/* 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 localSourceCodeTracker = false ;
public boolean isSourceCodeSpecified(){
return localSourceCodeTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getSourceCode(){
return localSourceCode;
}
/**
* Auto generated setter method
* @param param SourceCode
*/
public void setSourceCode(java.lang.String param){
localSourceCodeTracker = true;
this.localSourceCode=param;
}
/**
* field for ItemType
*/
protected java.lang.String localItemType ;
/* 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 localItemTypeTracker = false ;
public boolean isItemTypeSpecified(){
return localItemTypeTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getItemType(){
return localItemType;
}
/**
* Auto generated setter method
* @param param ItemType
*/
public void setItemType(java.lang.String param){
localItemTypeTracker = true;
this.localItemType=param;
}
/**
* field for AccountType
*/
protected java.lang.String localAccountType ;
/* 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 localAccountTypeTracker = false ;
public boolean isAccountTypeSpecified(){
return localAccountTypeTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getAccountType(){
return localAccountType;
}
/**
* Auto generated setter method
* @param param AccountType
*/
public void setAccountType(java.lang.String param){
localAccountTypeTracker = true;
this.localAccountType=param;
}
/**
* field for Weight
*/
protected java.math.BigDecimal localWeight ;
/* 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 localWeightTracker = false ;
public boolean isWeightSpecified(){
return localWeightTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getWeight(){
return localWeight;
}
/**
* Auto generated setter method
* @param param Weight
*/
public void setWeight(java.math.BigDecimal param){
localWeightTracker = true;
this.localWeight=param;
}
/**
* field for SalesWeight
*/
protected java.math.BigDecimal localSalesWeight ;
/* 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 localSalesWeightTracker = false ;
public boolean isSalesWeightSpecified(){
return localSalesWeightTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getSalesWeight(){
return localSalesWeight;
}
/**
* Auto generated setter method
* @param param SalesWeight
*/
public void setSalesWeight(java.math.BigDecimal param){
localSalesWeightTracker = true;
this.localSalesWeight=param;
}
/**
* field for UnSalesWeight
*/
protected java.math.BigDecimal localUnSalesWeight ;
/* 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 localUnSalesWeightTracker = false ;
public boolean isUnSalesWeightSpecified(){
return localUnSalesWeightTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getUnSalesWeight(){
return localUnSalesWeight;
}
/**
* Auto generated setter method
* @param param UnSalesWeight
*/
public void setUnSalesWeight(java.math.BigDecimal param){
localUnSalesWeightTracker = true;
this.localUnSalesWeight=param;
}
/**
* field for ProcessFee
*/
protected java.math.BigDecimal localProcessFee ;
/* 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 localProcessFeeTracker = false ;
public boolean isProcessFeeSpecified(){
return localProcessFeeTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getProcessFee(){
return localProcessFee;
}
/**
* Auto generated setter method
* @param param ProcessFee
*/
public void setProcessFee(java.math.BigDecimal param){
localProcessFeeTracker = true;
this.localProcessFee=param;
}
/**
* field for ProcessFee_S
*/
protected java.math.BigDecimal localProcessFee_S ;
/* 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 localProcessFee_STracker = false ;
public boolean isProcessFee_SSpecified(){
return localProcessFee_STracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getProcessFee_S(){
return localProcessFee_S;
}
/**
* Auto generated setter method
* @param param ProcessFee_S
*/
public void setProcessFee_S(java.math.BigDecimal param){
localProcessFee_STracker = true;
this.localProcessFee_S=param;
}
/**
* field for Price_G
*/
protected java.math.BigDecimal localPrice_G ;
/* 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 localPrice_GTracker = false ;
public boolean isPrice_GSpecified(){
return localPrice_GTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getPrice_G(){
return localPrice_G;
}
/**
* Auto generated setter method
* @param param Price_G
*/
public void setPrice_G(java.math.BigDecimal param){
localPrice_GTracker = true;
this.localPrice_G=param;
}
/**
* field for SettlementPrice_G
*/
protected java.math.BigDecimal localSettlementPrice_G ;
/* 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 localSettlementPrice_GTracker = false ;
public boolean isSettlementPrice_GSpecified(){
return localSettlementPrice_GTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getSettlementPrice_G(){
return localSettlementPrice_G;
}
/**
* Auto generated setter method
* @param param SettlementPrice_G
*/
public void setSettlementPrice_G(java.math.BigDecimal param){
localSettlementPrice_GTracker = true;
this.localSettlementPrice_G=param;
}
/**
* field for SalesAmount
*/
protected java.math.BigDecimal localSalesAmount ;
/* 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 localSalesAmountTracker = false ;
public boolean isSalesAmountSpecified(){
return localSalesAmountTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getSalesAmount(){
return localSalesAmount;
}
/**
* Auto generated setter method
* @param param SalesAmount
*/
public void setSalesAmount(java.math.BigDecimal param){
localSalesAmountTracker = true;
this.localSalesAmount=param;
}
/**
* field for FactAmount
*/
protected java.math.BigDecimal localFactAmount ;
/* 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 localFactAmountTracker = false ;
public boolean isFactAmountSpecified(){
return localFactAmountTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getFactAmount(){
return localFactAmount;
}
/**
* Auto generated setter method
* @param param FactAmount
*/
public void setFactAmount(java.math.BigDecimal param){
localFactAmountTracker = true;
this.localFactAmount=param;
}
/**
* field for PayAmount
*/
protected java.math.BigDecimal localPayAmount ;
/* 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 localPayAmountTracker = false ;
public boolean isPayAmountSpecified(){
return localPayAmountTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getPayAmount(){
return localPayAmount;
}
/**
* Auto generated setter method
* @param param PayAmount
*/
public void setPayAmount(java.math.BigDecimal param){
localPayAmountTracker = true;
this.localPayAmount=param;
}
/**
* field for PointAmount
*/
protected java.math.BigDecimal localPointAmount ;
/* 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 localPointAmountTracker = false ;
public boolean isPointAmountSpecified(){
return localPointAmountTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getPointAmount(){
return localPointAmount;
}
/**
* Auto generated setter method
* @param param PointAmount
*/
public void setPointAmount(java.math.BigDecimal param){
localPointAmountTracker = true;
this.localPointAmount=param;
}
/**
* field for OldAmount
*/
protected java.math.BigDecimal localOldAmount ;
/* 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 localOldAmountTracker = false ;
public boolean isOldAmountSpecified(){
return localOldAmountTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getOldAmount(){
return localOldAmount;
}
/**
* Auto generated setter method
* @param param OldAmount
*/
public void setOldAmount(java.math.BigDecimal param){
localOldAmountTracker = true;
this.localOldAmount=param;
}
/**
* field for ReplaceAmount
*/
protected java.math.BigDecimal localReplaceAmount ;
/* 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 localReplaceAmountTracker = false ;
public boolean isReplaceAmountSpecified(){
return localReplaceAmountTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getReplaceAmount(){
return localReplaceAmount;
}
/**
* Auto generated setter method
* @param param ReplaceAmount
*/
public void setReplaceAmount(java.math.BigDecimal param){
localReplaceAmountTracker = true;
this.localReplaceAmount=param;
}
/**
* field for SettlementPrice
*/
protected java.math.BigDecimal localSettlementPrice ;
/* 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 localSettlementPriceTracker = false ;
public boolean isSettlementPriceSpecified(){
return localSettlementPriceTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getSettlementPrice(){
return localSettlementPrice;
}
/**
* Auto generated setter method
* @param param SettlementPrice
*/
public void setSettlementPrice(java.math.BigDecimal param){
localSettlementPriceTracker = true;
this.localSettlementPrice=param;
}
/**
* field for InvoceCode
*/
protected java.lang.String localInvoceCode ;
/* 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 localInvoceCodeTracker = false ;
public boolean isInvoceCodeSpecified(){
return localInvoceCodeTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getInvoceCode(){
return localInvoceCode;
}
/**
* Auto generated setter method
* @param param InvoceCode
*/
public void setInvoceCode(java.lang.String param){
localInvoceCodeTracker = true;
this.localInvoceCode=param;
}
/**
* field for InvoiceAmount
*/
protected java.math.BigDecimal localInvoiceAmount ;
/* 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 localInvoiceAmountTracker = false ;
public boolean isInvoiceAmountSpecified(){
return localInvoiceAmountTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getInvoiceAmount(){
return localInvoiceAmount;
}
/**
* Auto generated setter method
* @param param InvoiceAmount
*/
public void setInvoiceAmount(java.math.BigDecimal param){
localInvoiceAmountTracker = true;
this.localInvoiceAmount=param;
}
/**
* field for PromotionID
*/
protected java.lang.String localPromotionID ;
/* 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 localPromotionIDTracker = false ;
public boolean isPromotionIDSpecified(){
return localPromotionIDTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getPromotionID(){
return localPromotionID;
}
/**
* Auto generated setter method
* @param param PromotionID
*/
public void setPromotionID(java.lang.String param){
localPromotionIDTracker = true;
this.localPromotionID=param;
}
/**
* field for PromotionName
*/
protected java.lang.String localPromotionName ;
/* 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 localPromotionNameTracker = false ;
public boolean isPromotionNameSpecified(){
return localPromotionNameTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getPromotionName(){
return localPromotionName;
}
/**
* Auto generated setter method
* @param param PromotionName
*/
public void setPromotionName(java.lang.String param){
localPromotionNameTracker = true;
this.localPromotionName=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{
org.apache.axiom.om.OMDataSource dataSource =
new org.apache.axis2.databinding.ADBDataSource(this,parentQName);
return factory.createOMElement(dataSource,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,"http://www.topsunit.com/rms");
if ((namespacePrefix != null) && (namespacePrefix.trim().length() > 0)){
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
namespacePrefix+":retail_M",
xmlWriter);
} else {
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
"retail_M",
xmlWriter);
}
}
if (localEmployeeIDTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "employeeID", xmlWriter);
if (localEmployeeID==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("employeeID cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEmployeeID));
}
xmlWriter.writeEndElement();
} if (localIsReplaceTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "isReplace", xmlWriter);
if (localIsReplace==java.lang.Integer.MIN_VALUE) {
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsReplace));
}
xmlWriter.writeEndElement();
} if (localMATNRTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "MATNR", xmlWriter);
if (localMATNR==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localMATNR);
}
xmlWriter.writeEndElement();
} if (localMatklTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "Matkl", xmlWriter);
if (localMatkl==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localMatkl);
}
xmlWriter.writeEndElement();
} if (localLineNumTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "lineNum", xmlWriter);
if (localLineNum==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("lineNum cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLineNum));
}
xmlWriter.writeEndElement();
} if (localItemIDTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "itemID", xmlWriter);
if (localItemID==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("itemID cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItemID));
}
xmlWriter.writeEndElement();
} if (localItemCodeTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "itemCode", xmlWriter);
if (localItemCode==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localItemCode);
}
xmlWriter.writeEndElement();
} if (localPalWeightTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "palWeight", xmlWriter);
if (localPalWeight==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPalWeight));
}
xmlWriter.writeEndElement();
} if (localPalAmountTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "palAmount", xmlWriter);
if (localPalAmount==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPalAmount));
}
xmlWriter.writeEndElement();
} if (localSourceCodeTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "sourceCode", xmlWriter);
if (localSourceCode==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localSourceCode);
}
xmlWriter.writeEndElement();
} if (localItemTypeTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "itemType", xmlWriter);
if (localItemType==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localItemType);
}
xmlWriter.writeEndElement();
} if (localAccountTypeTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "accountType", xmlWriter);
if (localAccountType==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localAccountType);
}
xmlWriter.writeEndElement();
} if (localWeightTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "weight", xmlWriter);
if (localWeight==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWeight));
}
xmlWriter.writeEndElement();
} if (localSalesWeightTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "salesWeight", xmlWriter);
if (localSalesWeight==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSalesWeight));
}
xmlWriter.writeEndElement();
} if (localUnSalesWeightTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "unSalesWeight", xmlWriter);
if (localUnSalesWeight==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUnSalesWeight));
}
xmlWriter.writeEndElement();
} if (localProcessFeeTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "processFee", xmlWriter);
if (localProcessFee==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProcessFee));
}
xmlWriter.writeEndElement();
} if (localProcessFee_STracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "processFee_S", xmlWriter);
if (localProcessFee_S==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProcessFee_S));
}
xmlWriter.writeEndElement();
} if (localPrice_GTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "price_G", xmlWriter);
if (localPrice_G==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPrice_G));
}
xmlWriter.writeEndElement();
} if (localSettlementPrice_GTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "settlementPrice_G", xmlWriter);
if (localSettlementPrice_G==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSettlementPrice_G));
}
xmlWriter.writeEndElement();
} if (localSalesAmountTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "salesAmount", xmlWriter);
if (localSalesAmount==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSalesAmount));
}
xmlWriter.writeEndElement();
} if (localFactAmountTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "factAmount", xmlWriter);
if (localFactAmount==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFactAmount));
}
xmlWriter.writeEndElement();
} if (localPayAmountTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "payAmount", xmlWriter);
if (localPayAmount==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPayAmount));
}
xmlWriter.writeEndElement();
} if (localPointAmountTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "pointAmount", xmlWriter);
if (localPointAmount==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPointAmount));
}
xmlWriter.writeEndElement();
} if (localOldAmountTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "oldAmount", xmlWriter);
if (localOldAmount==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldAmount));
}
xmlWriter.writeEndElement();
} if (localReplaceAmountTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "replaceAmount", xmlWriter);
if (localReplaceAmount==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplaceAmount));
}
xmlWriter.writeEndElement();
} if (localSettlementPriceTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "settlementPrice", xmlWriter);
if (localSettlementPrice==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSettlementPrice));
}
xmlWriter.writeEndElement();
} if (localInvoceCodeTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "invoceCode", xmlWriter);
if (localInvoceCode==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localInvoceCode);
}
xmlWriter.writeEndElement();
} if (localInvoiceAmountTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "invoiceAmount", xmlWriter);
if (localInvoiceAmount==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInvoiceAmount));
}
xmlWriter.writeEndElement();
} if (localPromotionIDTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "promotionID", xmlWriter);
if (localPromotionID==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localPromotionID);
}
xmlWriter.writeEndElement();
} if (localPromotionNameTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "promotionName", xmlWriter);
if (localPromotionName==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localPromotionName);
}
xmlWriter.writeEndElement();
}
xmlWriter.writeEndElement();
}
private static java.lang.String generatePrefix(java.lang.String namespace) {
if(namespace.equals("http://www.topsunit.com/rms")){
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(namespace, localPart);
} 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{
if (xmlWriter.getPrefix(namespace) == null) {
xmlWriter.writeNamespace(prefix, namespace);
xmlWriter.setPrefix(prefix, namespace);
}
xmlWriter.writeAttribute(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 {
registerPrefix(xmlWriter, namespace);
xmlWriter.writeAttribute(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(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;
}
/**
* databinding method to get an XML representation of this object
*
*/
public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)
throws org.apache.axis2.databinding.ADBException{
java.util.ArrayList elementList = new java.util.ArrayList();
java.util.ArrayList attribList = new java.util.ArrayList();
if (localEmployeeIDTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"employeeID"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEmployeeID));
} if (localIsReplaceTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"isReplace"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsReplace));
} if (localMATNRTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"MATNR"));
elementList.add(localMATNR==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMATNR));
} if (localMatklTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"Matkl"));
elementList.add(localMatkl==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMatkl));
} if (localLineNumTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"lineNum"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLineNum));
} if (localItemIDTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"itemID"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItemID));
} if (localItemCodeTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"itemCode"));
elementList.add(localItemCode==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItemCode));
} if (localPalWeightTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"palWeight"));
elementList.add(localPalWeight==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPalWeight));
} if (localPalAmountTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"palAmount"));
elementList.add(localPalAmount==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPalAmount));
} if (localSourceCodeTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"sourceCode"));
elementList.add(localSourceCode==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSourceCode));
} if (localItemTypeTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"itemType"));
elementList.add(localItemType==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localItemType));
} if (localAccountTypeTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"accountType"));
elementList.add(localAccountType==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localAccountType));
} if (localWeightTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"weight"));
elementList.add(localWeight==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWeight));
} if (localSalesWeightTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"salesWeight"));
elementList.add(localSalesWeight==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSalesWeight));
} if (localUnSalesWeightTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"unSalesWeight"));
elementList.add(localUnSalesWeight==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localUnSalesWeight));
} if (localProcessFeeTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"processFee"));
elementList.add(localProcessFee==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProcessFee));
} if (localProcessFee_STracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"processFee_S"));
elementList.add(localProcessFee_S==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localProcessFee_S));
} if (localPrice_GTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"price_G"));
elementList.add(localPrice_G==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPrice_G));
} if (localSettlementPrice_GTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"settlementPrice_G"));
elementList.add(localSettlementPrice_G==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSettlementPrice_G));
} if (localSalesAmountTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"salesAmount"));
elementList.add(localSalesAmount==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSalesAmount));
} if (localFactAmountTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"factAmount"));
elementList.add(localFactAmount==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFactAmount));
} if (localPayAmountTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"payAmount"));
elementList.add(localPayAmount==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPayAmount));
} if (localPointAmountTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"pointAmount"));
elementList.add(localPointAmount==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPointAmount));
} if (localOldAmountTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"oldAmount"));
elementList.add(localOldAmount==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOldAmount));
} if (localReplaceAmountTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"replaceAmount"));
elementList.add(localReplaceAmount==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localReplaceAmount));
} if (localSettlementPriceTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"settlementPrice"));
elementList.add(localSettlementPrice==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSettlementPrice));
} if (localInvoceCodeTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"invoceCode"));
elementList.add(localInvoceCode==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInvoceCode));
} if (localInvoiceAmountTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"invoiceAmount"));
elementList.add(localInvoiceAmount==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localInvoiceAmount));
} if (localPromotionIDTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"promotionID"));
elementList.add(localPromotionID==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPromotionID));
} if (localPromotionNameTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"promotionName"));
elementList.add(localPromotionName==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPromotionName));
}
return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());
}
/**
* Factory class that keeps the parse method
*/
public static class Factory{
/**
* 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 Retail_M parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
Retail_M object =
new Retail_M();
int event;
java.lang.String nillableValue = null;
java.lang.String prefix ="";
java.lang.String namespaceuri ="";
try {
while (!reader.isStartElement() && !reader.isEndElement())
reader.next();
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 (!"retail_M".equals(type)){
//find namespace for the prefix
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
return (Retail_M)com.topsun.posclient.webservice.dto.imports.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.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","employeeID").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: "+"employeeID" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setEmployeeID(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setEmployeeID(java.lang.Integer.MIN_VALUE);
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","isReplace").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setIsReplace(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
} else {
object.setIsReplace(java.lang.Integer.MIN_VALUE);
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
object.setIsReplace(java.lang.Integer.MIN_VALUE);
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","MATNR").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setMATNR(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","Matkl").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setMatkl(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","lineNum").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: "+"lineNum" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setLineNum(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setLineNum(java.lang.Integer.MIN_VALUE);
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","itemID").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: "+"itemID" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setItemID(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setItemID(java.lang.Integer.MIN_VALUE);
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","itemCode").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setItemCode(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","palWeight").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setPalWeight(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","palAmount").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setPalAmount(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","sourceCode").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setSourceCode(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","itemType").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setItemType(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","accountType").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setAccountType(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","weight").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setWeight(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","salesWeight").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setSalesWeight(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","unSalesWeight").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setUnSalesWeight(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","processFee").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setProcessFee(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","processFee_S").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setProcessFee_S(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","price_G").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setPrice_G(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","settlementPrice_G").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setSettlementPrice_G(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","salesAmount").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setSalesAmount(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","factAmount").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setFactAmount(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","payAmount").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setPayAmount(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","pointAmount").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setPointAmount(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","oldAmount").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setOldAmount(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","replaceAmount").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setReplaceAmount(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","settlementPrice").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setSettlementPrice(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","invoceCode").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setInvoceCode(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","invoiceAmount").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setInvoiceAmount(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","promotionID").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setPromotionID(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement()) reader.next();
if (reader.isStartElement() && new javax.xml.namespace.QName("http://www.topsunit.com/rms","promotionName").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if (!"true".equals(nillableValue) && !"1".equals(nillableValue)){
java.lang.String content = reader.getElementText();
object.setPromotionName(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(content));
} else {
reader.getElementText(); // throw away text nodes if any.
}
reader.next();
} // End of if for expected property start element
else {
}
while (!reader.isStartElement() && !reader.isEndElement())
reader.next();
if (reader.isStartElement())
// A start element we are not expecting indicates a trailing invalid property
throw new org.apache.axis2.databinding.ADBException("Unexpected subelement " + reader.getName());
} catch (javax.xml.stream.XMLStreamException e) {
throw new java.lang.Exception(e);
}
return object;
}
}//end of factory class
}