/**
* Promotion.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;
/**
* Promotion bean class
*/
@SuppressWarnings({"unchecked","unused"})
public class Promotion
implements org.apache.axis2.databinding.ADBBean{
/* This type was generated from the piece of schema that had
name = promotion
Namespace URI = http://www.topsunit.com/rms
Namespace Prefix = ns1
*/
/**
* field for Id
*/
protected int localId ;
/* 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 localIdTracker = false ;
public boolean isIdSpecified(){
return localIdTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getId(){
return localId;
}
/**
* Auto generated setter method
* @param param Id
*/
public void setId(int param){
// setting primitive attribute tracker to true
localIdTracker =
param != java.lang.Integer.MIN_VALUE;
this.localId=param;
}
/**
* field for DocNum
*/
protected java.lang.String localDocNum ;
/* 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 localDocNumTracker = false ;
public boolean isDocNumSpecified(){
return localDocNumTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getDocNum(){
return localDocNum;
}
/**
* Auto generated setter method
* @param param DocNum
*/
public void setDocNum(java.lang.String param){
localDocNumTracker = true;
this.localDocNum=param;
}
/**
* field for Title
*/
protected java.lang.String localTitle ;
/* 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 localTitleTracker = false ;
public boolean isTitleSpecified(){
return localTitleTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getTitle(){
return localTitle;
}
/**
* Auto generated setter method
* @param param Title
*/
public void setTitle(java.lang.String param){
localTitleTracker = true;
this.localTitle=param;
}
/**
* field for StartDate
*/
protected java.util.Calendar localStartDate ;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localStartDateTracker = false ;
public boolean isStartDateSpecified(){
return localStartDateTracker;
}
/**
* Auto generated getter method
* @return java.util.Calendar
*/
public java.util.Calendar getStartDate(){
return localStartDate;
}
/**
* Auto generated setter method
* @param param StartDate
*/
public void setStartDate(java.util.Calendar param){
localStartDateTracker = param != null;
this.localStartDate=param;
}
/**
* field for EndDate
*/
protected java.util.Calendar localEndDate ;
/* This tracker boolean wil be used to detect whether the user called the set method
* for this attribute. It will be used to determine whether to include this field
* in the serialized XML
*/
protected boolean localEndDateTracker = false ;
public boolean isEndDateSpecified(){
return localEndDateTracker;
}
/**
* Auto generated getter method
* @return java.util.Calendar
*/
public java.util.Calendar getEndDate(){
return localEndDate;
}
/**
* Auto generated setter method
* @param param EndDate
*/
public void setEndDate(java.util.Calendar param){
localEndDateTracker = param != null;
this.localEndDate=param;
}
/**
* field for MondayFlg
*/
protected int localMondayFlg ;
/* 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 localMondayFlgTracker = false ;
public boolean isMondayFlgSpecified(){
return localMondayFlgTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getMondayFlg(){
return localMondayFlg;
}
/**
* Auto generated setter method
* @param param MondayFlg
*/
public void setMondayFlg(int param){
// setting primitive attribute tracker to true
localMondayFlgTracker =
param != java.lang.Integer.MIN_VALUE;
this.localMondayFlg=param;
}
/**
* field for TuesdayFlg
*/
protected int localTuesdayFlg ;
/* 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 localTuesdayFlgTracker = false ;
public boolean isTuesdayFlgSpecified(){
return localTuesdayFlgTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getTuesdayFlg(){
return localTuesdayFlg;
}
/**
* Auto generated setter method
* @param param TuesdayFlg
*/
public void setTuesdayFlg(int param){
// setting primitive attribute tracker to true
localTuesdayFlgTracker =
param != java.lang.Integer.MIN_VALUE;
this.localTuesdayFlg=param;
}
/**
* field for WednesdayFlg
*/
protected int localWednesdayFlg ;
/* 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 localWednesdayFlgTracker = false ;
public boolean isWednesdayFlgSpecified(){
return localWednesdayFlgTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getWednesdayFlg(){
return localWednesdayFlg;
}
/**
* Auto generated setter method
* @param param WednesdayFlg
*/
public void setWednesdayFlg(int param){
// setting primitive attribute tracker to true
localWednesdayFlgTracker =
param != java.lang.Integer.MIN_VALUE;
this.localWednesdayFlg=param;
}
/**
* field for ThursdayFlg
*/
protected int localThursdayFlg ;
/* 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 localThursdayFlgTracker = false ;
public boolean isThursdayFlgSpecified(){
return localThursdayFlgTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getThursdayFlg(){
return localThursdayFlg;
}
/**
* Auto generated setter method
* @param param ThursdayFlg
*/
public void setThursdayFlg(int param){
// setting primitive attribute tracker to true
localThursdayFlgTracker =
param != java.lang.Integer.MIN_VALUE;
this.localThursdayFlg=param;
}
/**
* field for FridayFlg
*/
protected int localFridayFlg ;
/* 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 localFridayFlgTracker = false ;
public boolean isFridayFlgSpecified(){
return localFridayFlgTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getFridayFlg(){
return localFridayFlg;
}
/**
* Auto generated setter method
* @param param FridayFlg
*/
public void setFridayFlg(int param){
// setting primitive attribute tracker to true
localFridayFlgTracker =
param != java.lang.Integer.MIN_VALUE;
this.localFridayFlg=param;
}
/**
* field for SaturdayFlg
*/
protected int localSaturdayFlg ;
/* 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 localSaturdayFlgTracker = false ;
public boolean isSaturdayFlgSpecified(){
return localSaturdayFlgTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getSaturdayFlg(){
return localSaturdayFlg;
}
/**
* Auto generated setter method
* @param param SaturdayFlg
*/
public void setSaturdayFlg(int param){
// setting primitive attribute tracker to true
localSaturdayFlgTracker =
param != java.lang.Integer.MIN_VALUE;
this.localSaturdayFlg=param;
}
/**
* field for SundayFlg
*/
protected int localSundayFlg ;
/* 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 localSundayFlgTracker = false ;
public boolean isSundayFlgSpecified(){
return localSundayFlgTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getSundayFlg(){
return localSundayFlg;
}
/**
* Auto generated setter method
* @param param SundayFlg
*/
public void setSundayFlg(int param){
// setting primitive attribute tracker to true
localSundayFlgTracker =
param != java.lang.Integer.MIN_VALUE;
this.localSundayFlg=param;
}
/**
* field for StartTime
*/
protected java.lang.String localStartTime ;
/* 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 localStartTimeTracker = false ;
public boolean isStartTimeSpecified(){
return localStartTimeTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getStartTime(){
return localStartTime;
}
/**
* Auto generated setter method
* @param param StartTime
*/
public void setStartTime(java.lang.String param){
localStartTimeTracker = true;
this.localStartTime=param;
}
/**
* field for EndTime
*/
protected java.lang.String localEndTime ;
/* 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 localEndTimeTracker = false ;
public boolean isEndTimeSpecified(){
return localEndTimeTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getEndTime(){
return localEndTime;
}
/**
* Auto generated setter method
* @param param EndTime
*/
public void setEndTime(java.lang.String param){
localEndTimeTracker = true;
this.localEndTime=param;
}
/**
* field for TypeID
*/
protected java.lang.String localTypeID ;
/* 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 localTypeIDTracker = false ;
public boolean isTypeIDSpecified(){
return localTypeIDTracker;
}
/**
* Auto generated getter method
* @return java.lang.String
*/
public java.lang.String getTypeID(){
return localTypeID;
}
/**
* Auto generated setter method
* @param param TypeID
*/
public void setTypeID(java.lang.String param){
localTypeIDTracker = true;
this.localTypeID=param;
}
/**
* field for Level
*/
protected int localLevel ;
/* 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 localLevelTracker = false ;
public boolean isLevelSpecified(){
return localLevelTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getLevel(){
return localLevel;
}
/**
* Auto generated setter method
* @param param Level
*/
public void setLevel(int param){
// setting primitive attribute tracker to true
localLevelTracker =
param != java.lang.Integer.MIN_VALUE;
this.localLevel=param;
}
/**
* field for IsAll
*/
protected int localIsAll ;
/* 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 localIsAllTracker = false ;
public boolean isIsAllSpecified(){
return localIsAllTracker;
}
/**
* Auto generated getter method
* @return int
*/
public int getIsAll(){
return localIsAll;
}
/**
* Auto generated setter method
* @param param IsAll
*/
public void setIsAll(int param){
// setting primitive attribute tracker to true
localIsAllTracker =
param != java.lang.Integer.MIN_VALUE;
this.localIsAll=param;
}
/**
* field for Rate
*/
protected java.math.BigDecimal localRate ;
/* 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 localRateTracker = false ;
public boolean isRateSpecified(){
return localRateTracker;
}
/**
* Auto generated getter method
* @return java.math.BigDecimal
*/
public java.math.BigDecimal getRate(){
return localRate;
}
/**
* Auto generated setter method
* @param param Rate
*/
public void setRate(java.math.BigDecimal param){
localRateTracker = param != null;
this.localRate=param;
}
/**
* field for Promotion_ms
*/
protected com.topsun.posclient.webservice.dto.ArrayOfpromotion_m localPromotion_ms ;
/* 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 localPromotion_msTracker = false ;
public boolean isPromotion_msSpecified(){
return localPromotion_msTracker;
}
/**
* Auto generated getter method
* @return com.topsun.posclient.webservice.dto.ArrayOfpromotion_m
*/
public com.topsun.posclient.webservice.dto.ArrayOfpromotion_m getPromotion_ms(){
return localPromotion_ms;
}
/**
* Auto generated setter method
* @param param Promotion_ms
*/
public void setPromotion_ms(com.topsun.posclient.webservice.dto.ArrayOfpromotion_m param){
localPromotion_msTracker = true;
this.localPromotion_ms=param;
}
/**
* field for Promotion_ss
*/
protected com.topsun.posclient.webservice.dto.ArrayOfpromotion_s localPromotion_ss ;
/* 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 localPromotion_ssTracker = false ;
public boolean isPromotion_ssSpecified(){
return localPromotion_ssTracker;
}
/**
* Auto generated getter method
* @return com.topsun.posclient.webservice.dto.ArrayOfpromotion_s
*/
public com.topsun.posclient.webservice.dto.ArrayOfpromotion_s getPromotion_ss(){
return localPromotion_ss;
}
/**
* Auto generated setter method
* @param param Promotion_ss
*/
public void setPromotion_ss(com.topsun.posclient.webservice.dto.ArrayOfpromotion_s param){
localPromotion_ssTracker = true;
this.localPromotion_ss=param;
}
/**
* field for Promotion_as
*/
protected com.topsun.posclient.webservice.dto.ArrayOfpromotion_a localPromotion_as ;
/* 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 localPromotion_asTracker = false ;
public boolean isPromotion_asSpecified(){
return localPromotion_asTracker;
}
/**
* Auto generated getter method
* @return com.topsun.posclient.webservice.dto.ArrayOfpromotion_a
*/
public com.topsun.posclient.webservice.dto.ArrayOfpromotion_a getPromotion_as(){
return localPromotion_as;
}
/**
* Auto generated setter method
* @param param Promotion_as
*/
public void setPromotion_as(com.topsun.posclient.webservice.dto.ArrayOfpromotion_a param){
localPromotion_asTracker = true;
this.localPromotion_as=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+":promotion",
xmlWriter);
} else {
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type",
"promotion",
xmlWriter);
}
}
if (localIdTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "id", xmlWriter);
if (localId==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("id cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localId));
}
xmlWriter.writeEndElement();
} if (localDocNumTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "docNum", xmlWriter);
if (localDocNum==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localDocNum);
}
xmlWriter.writeEndElement();
} if (localTitleTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "title", xmlWriter);
if (localTitle==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localTitle);
}
xmlWriter.writeEndElement();
} if (localStartDateTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "startDate", xmlWriter);
if (localStartDate==null){
// write the nil attribute
throw new org.apache.axis2.databinding.ADBException("startDate cannot be null!!");
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStartDate));
}
xmlWriter.writeEndElement();
} if (localEndDateTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "endDate", xmlWriter);
if (localEndDate==null){
// write the nil attribute
throw new org.apache.axis2.databinding.ADBException("endDate cannot be null!!");
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEndDate));
}
xmlWriter.writeEndElement();
} if (localMondayFlgTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "mondayFlg", xmlWriter);
if (localMondayFlg==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("mondayFlg cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMondayFlg));
}
xmlWriter.writeEndElement();
} if (localTuesdayFlgTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "tuesdayFlg", xmlWriter);
if (localTuesdayFlg==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("tuesdayFlg cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTuesdayFlg));
}
xmlWriter.writeEndElement();
} if (localWednesdayFlgTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "wednesdayFlg", xmlWriter);
if (localWednesdayFlg==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("wednesdayFlg cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWednesdayFlg));
}
xmlWriter.writeEndElement();
} if (localThursdayFlgTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "thursdayFlg", xmlWriter);
if (localThursdayFlg==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("thursdayFlg cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThursdayFlg));
}
xmlWriter.writeEndElement();
} if (localFridayFlgTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "fridayFlg", xmlWriter);
if (localFridayFlg==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("fridayFlg cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFridayFlg));
}
xmlWriter.writeEndElement();
} if (localSaturdayFlgTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "saturdayFlg", xmlWriter);
if (localSaturdayFlg==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("saturdayFlg cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSaturdayFlg));
}
xmlWriter.writeEndElement();
} if (localSundayFlgTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "sundayFlg", xmlWriter);
if (localSundayFlg==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("sundayFlg cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSundayFlg));
}
xmlWriter.writeEndElement();
} if (localStartTimeTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "startTime", xmlWriter);
if (localStartTime==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localStartTime);
}
xmlWriter.writeEndElement();
} if (localEndTimeTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "endTime", xmlWriter);
if (localEndTime==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localEndTime);
}
xmlWriter.writeEndElement();
} if (localTypeIDTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "typeID", xmlWriter);
if (localTypeID==null){
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
}else{
xmlWriter.writeCharacters(localTypeID);
}
xmlWriter.writeEndElement();
} if (localLevelTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "level", xmlWriter);
if (localLevel==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("level cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLevel));
}
xmlWriter.writeEndElement();
} if (localIsAllTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "isAll", xmlWriter);
if (localIsAll==java.lang.Integer.MIN_VALUE) {
throw new org.apache.axis2.databinding.ADBException("isAll cannot be null!!");
} else {
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsAll));
}
xmlWriter.writeEndElement();
} if (localRateTracker){
namespace = "http://www.topsunit.com/rms";
writeStartElement(null, namespace, "rate", xmlWriter);
if (localRate==null){
// write the nil attribute
throw new org.apache.axis2.databinding.ADBException("rate cannot be null!!");
}else{
xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRate));
}
xmlWriter.writeEndElement();
} if (localPromotion_msTracker){
if (localPromotion_ms==null){
writeStartElement(null, "http://www.topsunit.com/rms", "promotion_ms", xmlWriter);
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
xmlWriter.writeEndElement();
}else{
localPromotion_ms.serialize(new javax.xml.namespace.QName("http://www.topsunit.com/rms","promotion_ms"),
xmlWriter);
}
} if (localPromotion_ssTracker){
if (localPromotion_ss==null){
writeStartElement(null, "http://www.topsunit.com/rms", "promotion_ss", xmlWriter);
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
xmlWriter.writeEndElement();
}else{
localPromotion_ss.serialize(new javax.xml.namespace.QName("http://www.topsunit.com/rms","promotion_ss"),
xmlWriter);
}
} if (localPromotion_asTracker){
if (localPromotion_as==null){
writeStartElement(null, "http://www.topsunit.com/rms", "promotion_as", xmlWriter);
// write the nil attribute
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","1",xmlWriter);
xmlWriter.writeEndElement();
}else{
localPromotion_as.serialize(new javax.xml.namespace.QName("http://www.topsunit.com/rms","promotion_as"),
xmlWriter);
}
}
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 (localIdTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"id"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localId));
} if (localDocNumTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"docNum"));
elementList.add(localDocNum==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localDocNum));
} if (localTitleTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"title"));
elementList.add(localTitle==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTitle));
} if (localStartDateTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"startDate"));
if (localStartDate != null){
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStartDate));
} else {
throw new org.apache.axis2.databinding.ADBException("startDate cannot be null!!");
}
} if (localEndDateTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"endDate"));
if (localEndDate != null){
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEndDate));
} else {
throw new org.apache.axis2.databinding.ADBException("endDate cannot be null!!");
}
} if (localMondayFlgTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"mondayFlg"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMondayFlg));
} if (localTuesdayFlgTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"tuesdayFlg"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTuesdayFlg));
} if (localWednesdayFlgTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"wednesdayFlg"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localWednesdayFlg));
} if (localThursdayFlgTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"thursdayFlg"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localThursdayFlg));
} if (localFridayFlgTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"fridayFlg"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFridayFlg));
} if (localSaturdayFlgTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"saturdayFlg"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSaturdayFlg));
} if (localSundayFlgTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"sundayFlg"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localSundayFlg));
} if (localStartTimeTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"startTime"));
elementList.add(localStartTime==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localStartTime));
} if (localEndTimeTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"endTime"));
elementList.add(localEndTime==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localEndTime));
} if (localTypeIDTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"typeID"));
elementList.add(localTypeID==null?null:
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localTypeID));
} if (localLevelTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"level"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localLevel));
} if (localIsAllTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"isAll"));
elementList.add(
org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localIsAll));
} if (localRateTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"rate"));
if (localRate != null){
elementList.add(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localRate));
} else {
throw new org.apache.axis2.databinding.ADBException("rate cannot be null!!");
}
} if (localPromotion_msTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"promotion_ms"));
elementList.add(localPromotion_ms==null?null:
localPromotion_ms);
} if (localPromotion_ssTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"promotion_ss"));
elementList.add(localPromotion_ss==null?null:
localPromotion_ss);
} if (localPromotion_asTracker){
elementList.add(new javax.xml.namespace.QName("http://www.topsunit.com/rms",
"promotion_as"));
elementList.add(localPromotion_as==null?null:
localPromotion_as);
}
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 Promotion parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
Promotion object =
new Promotion();
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 (!"promotion".equals(type)){
//find namespace for the prefix
java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);
return (Promotion)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","id").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: "+"id" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setId(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setId(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","docNum").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.setDocNum(
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","title").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.setTitle(
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","startDate").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if ("true".equals(nillableValue) || "1".equals(nillableValue)){
throw new org.apache.axis2.databinding.ADBException("The element: "+"startDate" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setStartDate(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));
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","endDate").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if ("true".equals(nillableValue) || "1".equals(nillableValue)){
throw new org.apache.axis2.databinding.ADBException("The element: "+"endDate" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setEndDate(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDateTime(content));
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","mondayFlg").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: "+"mondayFlg" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setMondayFlg(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setMondayFlg(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","tuesdayFlg").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: "+"tuesdayFlg" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setTuesdayFlg(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setTuesdayFlg(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","wednesdayFlg").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: "+"wednesdayFlg" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setWednesdayFlg(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setWednesdayFlg(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","thursdayFlg").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: "+"thursdayFlg" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setThursdayFlg(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setThursdayFlg(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","fridayFlg").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: "+"fridayFlg" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setFridayFlg(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setFridayFlg(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","saturdayFlg").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: "+"saturdayFlg" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setSaturdayFlg(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setSaturdayFlg(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","sundayFlg").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: "+"sundayFlg" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setSundayFlg(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setSundayFlg(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","startTime").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.setStartTime(
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","endTime").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.setEndTime(
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","typeID").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.setTypeID(
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","level").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: "+"level" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setLevel(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setLevel(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","isAll").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: "+"isAll" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setIsAll(
org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(content));
reader.next();
} // End of if for expected property start element
else {
object.setIsAll(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","rate").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: "+"rate" +" cannot be null");
}
java.lang.String content = reader.getElementText();
object.setRate(
org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(content));
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","promotion_ms").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if ("true".equals(nillableValue) || "1".equals(nillableValue)){
object.setPromotion_ms(null);
reader.next();
reader.next();
}else{
object.setPromotion_ms(com.topsun.posclient.webservice.dto.ArrayOfpromotion_m.Factory.parse(reader));
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","promotion_ss").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if ("true".equals(nillableValue) || "1".equals(nillableValue)){
object.setPromotion_ss(null);
reader.next();
reader.next();
}else{
object.setPromotion_ss(com.topsun.posclient.webservice.dto.ArrayOfpromotion_s.Factory.parse(reader));
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","promotion_as").equals(reader.getName())){
nillableValue = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","nil");
if ("true".equals(nillableValue) || "1".equals(nillableValue)){
object.setPromotion_as(null);
reader.next();
reader.next();
}else{
object.setPromotion_as(com.topsun.posclient.webservice.dto.ArrayOfpromotion_a.Factory.parse(reader));
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
}