Quote.java
上传用户:shen332233
上传日期:2021-09-03
资源大小:7478k
文件大小:16k
源码类别:

Ajax

开发平台:

Java

  1. /**
  2.  * Quote.java
  3.  *
  4.  * This file was auto-generated from WSDL
  5.  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
  6.  */
  7. package ajaxdashboard.ws.stockquote;
  8. public class Quote  implements java.io.Serializable {
  9.     private java.lang.String companyName;
  10.     private java.lang.String stockTicker;
  11.     private java.lang.String stockQuote;
  12.     private java.lang.String lastUpdated;
  13.     private java.lang.String change;
  14.     private java.lang.String openPrice;
  15.     private java.lang.String dayHighPrice;
  16.     private java.lang.String dayLowPrice;
  17.     private java.lang.String volume;
  18.     private java.lang.String marketCap;
  19.     private java.lang.String yearRange;
  20.     public Quote() {
  21.     }
  22.     public Quote(
  23.            java.lang.String companyName,
  24.            java.lang.String stockTicker,
  25.            java.lang.String stockQuote,
  26.            java.lang.String lastUpdated,
  27.            java.lang.String change,
  28.            java.lang.String openPrice,
  29.            java.lang.String dayHighPrice,
  30.            java.lang.String dayLowPrice,
  31.            java.lang.String volume,
  32.            java.lang.String marketCap,
  33.            java.lang.String yearRange) {
  34.            this.companyName = companyName;
  35.            this.stockTicker = stockTicker;
  36.            this.stockQuote = stockQuote;
  37.            this.lastUpdated = lastUpdated;
  38.            this.change = change;
  39.            this.openPrice = openPrice;
  40.            this.dayHighPrice = dayHighPrice;
  41.            this.dayLowPrice = dayLowPrice;
  42.            this.volume = volume;
  43.            this.marketCap = marketCap;
  44.            this.yearRange = yearRange;
  45.     }
  46.     /**
  47.      * Gets the companyName value for this Quote.
  48.      * 
  49.      * @return companyName
  50.      */
  51.     public java.lang.String getCompanyName() {
  52.         return companyName;
  53.     }
  54.     /**
  55.      * Sets the companyName value for this Quote.
  56.      * 
  57.      * @param companyName
  58.      */
  59.     public void setCompanyName(java.lang.String companyName) {
  60.         this.companyName = companyName;
  61.     }
  62.     /**
  63.      * Gets the stockTicker value for this Quote.
  64.      * 
  65.      * @return stockTicker
  66.      */
  67.     public java.lang.String getStockTicker() {
  68.         return stockTicker;
  69.     }
  70.     /**
  71.      * Sets the stockTicker value for this Quote.
  72.      * 
  73.      * @param stockTicker
  74.      */
  75.     public void setStockTicker(java.lang.String stockTicker) {
  76.         this.stockTicker = stockTicker;
  77.     }
  78.     /**
  79.      * Gets the stockQuote value for this Quote.
  80.      * 
  81.      * @return stockQuote
  82.      */
  83.     public java.lang.String getStockQuote() {
  84.         return stockQuote;
  85.     }
  86.     /**
  87.      * Sets the stockQuote value for this Quote.
  88.      * 
  89.      * @param stockQuote
  90.      */
  91.     public void setStockQuote(java.lang.String stockQuote) {
  92.         this.stockQuote = stockQuote;
  93.     }
  94.     /**
  95.      * Gets the lastUpdated value for this Quote.
  96.      * 
  97.      * @return lastUpdated
  98.      */
  99.     public java.lang.String getLastUpdated() {
  100.         return lastUpdated;
  101.     }
  102.     /**
  103.      * Sets the lastUpdated value for this Quote.
  104.      * 
  105.      * @param lastUpdated
  106.      */
  107.     public void setLastUpdated(java.lang.String lastUpdated) {
  108.         this.lastUpdated = lastUpdated;
  109.     }
  110.     /**
  111.      * Gets the change value for this Quote.
  112.      * 
  113.      * @return change
  114.      */
  115.     public java.lang.String getChange() {
  116.         return change;
  117.     }
  118.     /**
  119.      * Sets the change value for this Quote.
  120.      * 
  121.      * @param change
  122.      */
  123.     public void setChange(java.lang.String change) {
  124.         this.change = change;
  125.     }
  126.     /**
  127.      * Gets the openPrice value for this Quote.
  128.      * 
  129.      * @return openPrice
  130.      */
  131.     public java.lang.String getOpenPrice() {
  132.         return openPrice;
  133.     }
  134.     /**
  135.      * Sets the openPrice value for this Quote.
  136.      * 
  137.      * @param openPrice
  138.      */
  139.     public void setOpenPrice(java.lang.String openPrice) {
  140.         this.openPrice = openPrice;
  141.     }
  142.     /**
  143.      * Gets the dayHighPrice value for this Quote.
  144.      * 
  145.      * @return dayHighPrice
  146.      */
  147.     public java.lang.String getDayHighPrice() {
  148.         return dayHighPrice;
  149.     }
  150.     /**
  151.      * Sets the dayHighPrice value for this Quote.
  152.      * 
  153.      * @param dayHighPrice
  154.      */
  155.     public void setDayHighPrice(java.lang.String dayHighPrice) {
  156.         this.dayHighPrice = dayHighPrice;
  157.     }
  158.     /**
  159.      * Gets the dayLowPrice value for this Quote.
  160.      * 
  161.      * @return dayLowPrice
  162.      */
  163.     public java.lang.String getDayLowPrice() {
  164.         return dayLowPrice;
  165.     }
  166.     /**
  167.      * Sets the dayLowPrice value for this Quote.
  168.      * 
  169.      * @param dayLowPrice
  170.      */
  171.     public void setDayLowPrice(java.lang.String dayLowPrice) {
  172.         this.dayLowPrice = dayLowPrice;
  173.     }
  174.     /**
  175.      * Gets the volume value for this Quote.
  176.      * 
  177.      * @return volume
  178.      */
  179.     public java.lang.String getVolume() {
  180.         return volume;
  181.     }
  182.     /**
  183.      * Sets the volume value for this Quote.
  184.      * 
  185.      * @param volume
  186.      */
  187.     public void setVolume(java.lang.String volume) {
  188.         this.volume = volume;
  189.     }
  190.     /**
  191.      * Gets the marketCap value for this Quote.
  192.      * 
  193.      * @return marketCap
  194.      */
  195.     public java.lang.String getMarketCap() {
  196.         return marketCap;
  197.     }
  198.     /**
  199.      * Sets the marketCap value for this Quote.
  200.      * 
  201.      * @param marketCap
  202.      */
  203.     public void setMarketCap(java.lang.String marketCap) {
  204.         this.marketCap = marketCap;
  205.     }
  206.     /**
  207.      * Gets the yearRange value for this Quote.
  208.      * 
  209.      * @return yearRange
  210.      */
  211.     public java.lang.String getYearRange() {
  212.         return yearRange;
  213.     }
  214.     /**
  215.      * Sets the yearRange value for this Quote.
  216.      * 
  217.      * @param yearRange
  218.      */
  219.     public void setYearRange(java.lang.String yearRange) {
  220.         this.yearRange = yearRange;
  221.     }
  222.     private java.lang.Object __equalsCalc = null;
  223.     public synchronized boolean equals(java.lang.Object obj) {
  224.         if (!(obj instanceof Quote)) return false;
  225.         Quote other = (Quote) obj;
  226.         if (obj == null) return false;
  227.         if (this == obj) return true;
  228.         if (__equalsCalc != null) {
  229.             return (__equalsCalc == obj);
  230.         }
  231.         __equalsCalc = obj;
  232.         boolean _equals;
  233.         _equals = true && 
  234.             ((this.companyName==null && other.getCompanyName()==null) || 
  235.              (this.companyName!=null &&
  236.               this.companyName.equals(other.getCompanyName()))) &&
  237.             ((this.stockTicker==null && other.getStockTicker()==null) || 
  238.              (this.stockTicker!=null &&
  239.               this.stockTicker.equals(other.getStockTicker()))) &&
  240.             ((this.stockQuote==null && other.getStockQuote()==null) || 
  241.              (this.stockQuote!=null &&
  242.               this.stockQuote.equals(other.getStockQuote()))) &&
  243.             ((this.lastUpdated==null && other.getLastUpdated()==null) || 
  244.              (this.lastUpdated!=null &&
  245.               this.lastUpdated.equals(other.getLastUpdated()))) &&
  246.             ((this.change==null && other.getChange()==null) || 
  247.              (this.change!=null &&
  248.               this.change.equals(other.getChange()))) &&
  249.             ((this.openPrice==null && other.getOpenPrice()==null) || 
  250.              (this.openPrice!=null &&
  251.               this.openPrice.equals(other.getOpenPrice()))) &&
  252.             ((this.dayHighPrice==null && other.getDayHighPrice()==null) || 
  253.              (this.dayHighPrice!=null &&
  254.               this.dayHighPrice.equals(other.getDayHighPrice()))) &&
  255.             ((this.dayLowPrice==null && other.getDayLowPrice()==null) || 
  256.              (this.dayLowPrice!=null &&
  257.               this.dayLowPrice.equals(other.getDayLowPrice()))) &&
  258.             ((this.volume==null && other.getVolume()==null) || 
  259.              (this.volume!=null &&
  260.               this.volume.equals(other.getVolume()))) &&
  261.             ((this.marketCap==null && other.getMarketCap()==null) || 
  262.              (this.marketCap!=null &&
  263.               this.marketCap.equals(other.getMarketCap()))) &&
  264.             ((this.yearRange==null && other.getYearRange()==null) || 
  265.              (this.yearRange!=null &&
  266.               this.yearRange.equals(other.getYearRange())));
  267.         __equalsCalc = null;
  268.         return _equals;
  269.     }
  270.     private boolean __hashCodeCalc = false;
  271.     public synchronized int hashCode() {
  272.         if (__hashCodeCalc) {
  273.             return 0;
  274.         }
  275.         __hashCodeCalc = true;
  276.         int _hashCode = 1;
  277.         if (getCompanyName() != null) {
  278.             _hashCode += getCompanyName().hashCode();
  279.         }
  280.         if (getStockTicker() != null) {
  281.             _hashCode += getStockTicker().hashCode();
  282.         }
  283.         if (getStockQuote() != null) {
  284.             _hashCode += getStockQuote().hashCode();
  285.         }
  286.         if (getLastUpdated() != null) {
  287.             _hashCode += getLastUpdated().hashCode();
  288.         }
  289.         if (getChange() != null) {
  290.             _hashCode += getChange().hashCode();
  291.         }
  292.         if (getOpenPrice() != null) {
  293.             _hashCode += getOpenPrice().hashCode();
  294.         }
  295.         if (getDayHighPrice() != null) {
  296.             _hashCode += getDayHighPrice().hashCode();
  297.         }
  298.         if (getDayLowPrice() != null) {
  299.             _hashCode += getDayLowPrice().hashCode();
  300.         }
  301.         if (getVolume() != null) {
  302.             _hashCode += getVolume().hashCode();
  303.         }
  304.         if (getMarketCap() != null) {
  305.             _hashCode += getMarketCap().hashCode();
  306.         }
  307.         if (getYearRange() != null) {
  308.             _hashCode += getYearRange().hashCode();
  309.         }
  310.         __hashCodeCalc = false;
  311.         return _hashCode;
  312.     }
  313.     // Type metadata
  314.     private static org.apache.axis.description.TypeDesc typeDesc =
  315.         new org.apache.axis.description.TypeDesc(Quote.class, true);
  316.     static {
  317.         typeDesc.setXmlType(new javax.xml.namespace.QName("http://swanandmokashi.com", "Quote"));
  318.         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
  319.         elemField.setFieldName("companyName");
  320.         elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "CompanyName"));
  321.         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  322.         elemField.setMinOccurs(0);
  323.         elemField.setNillable(false);
  324.         typeDesc.addFieldDesc(elemField);
  325.         elemField = new org.apache.axis.description.ElementDesc();
  326.         elemField.setFieldName("stockTicker");
  327.         elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "StockTicker"));
  328.         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  329.         elemField.setMinOccurs(0);
  330.         elemField.setNillable(false);
  331.         typeDesc.addFieldDesc(elemField);
  332.         elemField = new org.apache.axis.description.ElementDesc();
  333.         elemField.setFieldName("stockQuote");
  334.         elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "StockQuote"));
  335.         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  336.         elemField.setMinOccurs(0);
  337.         elemField.setNillable(false);
  338.         typeDesc.addFieldDesc(elemField);
  339.         elemField = new org.apache.axis.description.ElementDesc();
  340.         elemField.setFieldName("lastUpdated");
  341.         elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "LastUpdated"));
  342.         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  343.         elemField.setMinOccurs(0);
  344.         elemField.setNillable(false);
  345.         typeDesc.addFieldDesc(elemField);
  346.         elemField = new org.apache.axis.description.ElementDesc();
  347.         elemField.setFieldName("change");
  348.         elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "Change"));
  349.         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  350.         elemField.setMinOccurs(0);
  351.         elemField.setNillable(false);
  352.         typeDesc.addFieldDesc(elemField);
  353.         elemField = new org.apache.axis.description.ElementDesc();
  354.         elemField.setFieldName("openPrice");
  355.         elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "OpenPrice"));
  356.         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  357.         elemField.setMinOccurs(0);
  358.         elemField.setNillable(false);
  359.         typeDesc.addFieldDesc(elemField);
  360.         elemField = new org.apache.axis.description.ElementDesc();
  361.         elemField.setFieldName("dayHighPrice");
  362.         elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "DayHighPrice"));
  363.         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  364.         elemField.setMinOccurs(0);
  365.         elemField.setNillable(false);
  366.         typeDesc.addFieldDesc(elemField);
  367.         elemField = new org.apache.axis.description.ElementDesc();
  368.         elemField.setFieldName("dayLowPrice");
  369.         elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "DayLowPrice"));
  370.         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  371.         elemField.setMinOccurs(0);
  372.         elemField.setNillable(false);
  373.         typeDesc.addFieldDesc(elemField);
  374.         elemField = new org.apache.axis.description.ElementDesc();
  375.         elemField.setFieldName("volume");
  376.         elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "Volume"));
  377.         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  378.         elemField.setMinOccurs(0);
  379.         elemField.setNillable(false);
  380.         typeDesc.addFieldDesc(elemField);
  381.         elemField = new org.apache.axis.description.ElementDesc();
  382.         elemField.setFieldName("marketCap");
  383.         elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "MarketCap"));
  384.         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  385.         elemField.setMinOccurs(0);
  386.         elemField.setNillable(false);
  387.         typeDesc.addFieldDesc(elemField);
  388.         elemField = new org.apache.axis.description.ElementDesc();
  389.         elemField.setFieldName("yearRange");
  390.         elemField.setXmlName(new javax.xml.namespace.QName("http://swanandmokashi.com", "YearRange"));
  391.         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
  392.         elemField.setMinOccurs(0);
  393.         elemField.setNillable(false);
  394.         typeDesc.addFieldDesc(elemField);
  395.     }
  396.     /**
  397.      * Return type metadata object
  398.      */
  399.     public static org.apache.axis.description.TypeDesc getTypeDesc() {
  400.         return typeDesc;
  401.     }
  402.     /**
  403.      * Get Custom Serializer
  404.      */
  405.     public static org.apache.axis.encoding.Serializer getSerializer(
  406.            java.lang.String mechType, 
  407.            java.lang.Class _javaType,  
  408.            javax.xml.namespace.QName _xmlType) {
  409.         return 
  410.           new  org.apache.axis.encoding.ser.BeanSerializer(
  411.             _javaType, _xmlType, typeDesc);
  412.     }
  413.     /**
  414.      * Get Custom Deserializer
  415.      */
  416.     public static org.apache.axis.encoding.Deserializer getDeserializer(
  417.            java.lang.String mechType, 
  418.            java.lang.Class _javaType,  
  419.            javax.xml.namespace.QName _xmlType) {
  420.         return 
  421.           new  org.apache.axis.encoding.ser.BeanDeserializer(
  422.             _javaType, _xmlType, typeDesc);
  423.     }
  424. }