📄 stockassertentity.java
字号:
/**
* StockAssertEntity.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package ase.assignment.sts.ws.beans;
public class StockAssertEntity implements java.io.Serializable {
private int amount;
private int id;
private double initPrice;
private java.lang.String name;
private int portfolio;
public StockAssertEntity() {
}
public StockAssertEntity(
int amount,
int id,
double initPrice,
java.lang.String name,
int portfolio) {
this.amount = amount;
this.id = id;
this.initPrice = initPrice;
this.name = name;
this.portfolio = portfolio;
}
/**
* Gets the amount value for this StockAssertEntity.
*
* @return amount
*/
public int getAmount() {
return amount;
}
/**
* Sets the amount value for this StockAssertEntity.
*
* @param amount
*/
public void setAmount(int amount) {
this.amount = amount;
}
/**
* Gets the id value for this StockAssertEntity.
*
* @return id
*/
public int getId() {
return id;
}
/**
* Sets the id value for this StockAssertEntity.
*
* @param id
*/
public void setId(int id) {
this.id = id;
}
/**
* Gets the initPrice value for this StockAssertEntity.
*
* @return initPrice
*/
public double getInitPrice() {
return initPrice;
}
/**
* Sets the initPrice value for this StockAssertEntity.
*
* @param initPrice
*/
public void setInitPrice(double initPrice) {
this.initPrice = initPrice;
}
/**
* Gets the name value for this StockAssertEntity.
*
* @return name
*/
public java.lang.String getName() {
return name;
}
/**
* Sets the name value for this StockAssertEntity.
*
* @param name
*/
public void setName(java.lang.String name) {
this.name = name;
}
/**
* Gets the portfolio value for this StockAssertEntity.
*
* @return portfolio
*/
public int getPortfolio() {
return portfolio;
}
/**
* Sets the portfolio value for this StockAssertEntity.
*
* @param portfolio
*/
public void setPortfolio(int portfolio) {
this.portfolio = portfolio;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof StockAssertEntity)) return false;
StockAssertEntity other = (StockAssertEntity) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.amount == other.getAmount() &&
this.id == other.getId() &&
this.initPrice == other.getInitPrice() &&
((this.name==null && other.getName()==null) ||
(this.name!=null &&
this.name.equals(other.getName()))) &&
this.portfolio == other.getPortfolio();
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += getAmount();
_hashCode += getId();
_hashCode += new Double(getInitPrice()).hashCode();
if (getName() != null) {
_hashCode += getName().hashCode();
}
_hashCode += getPortfolio();
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(StockAssertEntity.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("tsn:Stock", "StockAssertEntity"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("amount");
elemField.setXmlName(new javax.xml.namespace.QName("", "amount"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("id");
elemField.setXmlName(new javax.xml.namespace.QName("", "id"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("initPrice");
elemField.setXmlName(new javax.xml.namespace.QName("", "initPrice"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "double"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("name");
elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("portfolio");
elemField.setXmlName(new javax.xml.namespace.QName("", "portfolio"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -