📄 cartitem.java
字号:
/**
* CartItem.java
*
* This file was auto-generated from WSDL
* by the Apache Axis WSDL2Java emitter.
*/
package com.amazon.xml.AWSECommerceService;
public class CartItem implements java.io.Serializable {
private java.lang.String cartItemId;
private java.lang.String ASIN;
private java.lang.String exchangeId;
private java.lang.String merchantId;
private java.lang.String sellerId;
private java.lang.String quantity;
private java.lang.String title;
private java.lang.String productGroup;
private com.amazon.xml.AWSECommerceService.Price price;
public CartItem() {
}
public java.lang.String getCartItemId() {
return cartItemId;
}
public void setCartItemId(java.lang.String cartItemId) {
this.cartItemId = cartItemId;
}
public java.lang.String getASIN() {
return ASIN;
}
public void setASIN(java.lang.String ASIN) {
this.ASIN = ASIN;
}
public java.lang.String getExchangeId() {
return exchangeId;
}
public void setExchangeId(java.lang.String exchangeId) {
this.exchangeId = exchangeId;
}
public java.lang.String getMerchantId() {
return merchantId;
}
public void setMerchantId(java.lang.String merchantId) {
this.merchantId = merchantId;
}
public java.lang.String getSellerId() {
return sellerId;
}
public void setSellerId(java.lang.String sellerId) {
this.sellerId = sellerId;
}
public java.lang.String getQuantity() {
return quantity;
}
public void setQuantity(java.lang.String quantity) {
this.quantity = quantity;
}
public java.lang.String getTitle() {
return title;
}
public void setTitle(java.lang.String title) {
this.title = title;
}
public java.lang.String getProductGroup() {
return productGroup;
}
public void setProductGroup(java.lang.String productGroup) {
this.productGroup = productGroup;
}
public com.amazon.xml.AWSECommerceService.Price getPrice() {
return price;
}
public void setPrice(com.amazon.xml.AWSECommerceService.Price price) {
this.price = price;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof CartItem)) return false;
CartItem other = (CartItem) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.cartItemId==null && other.getCartItemId()==null) ||
(this.cartItemId!=null &&
this.cartItemId.equals(other.getCartItemId()))) &&
((this.ASIN==null && other.getASIN()==null) ||
(this.ASIN!=null &&
this.ASIN.equals(other.getASIN()))) &&
((this.exchangeId==null && other.getExchangeId()==null) ||
(this.exchangeId!=null &&
this.exchangeId.equals(other.getExchangeId()))) &&
((this.merchantId==null && other.getMerchantId()==null) ||
(this.merchantId!=null &&
this.merchantId.equals(other.getMerchantId()))) &&
((this.sellerId==null && other.getSellerId()==null) ||
(this.sellerId!=null &&
this.sellerId.equals(other.getSellerId()))) &&
((this.quantity==null && other.getQuantity()==null) ||
(this.quantity!=null &&
this.quantity.equals(other.getQuantity()))) &&
((this.title==null && other.getTitle()==null) ||
(this.title!=null &&
this.title.equals(other.getTitle()))) &&
((this.productGroup==null && other.getProductGroup()==null) ||
(this.productGroup!=null &&
this.productGroup.equals(other.getProductGroup()))) &&
((this.price==null && other.getPrice()==null) ||
(this.price!=null &&
this.price.equals(other.getPrice())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getCartItemId() != null) {
_hashCode += getCartItemId().hashCode();
}
if (getASIN() != null) {
_hashCode += getASIN().hashCode();
}
if (getExchangeId() != null) {
_hashCode += getExchangeId().hashCode();
}
if (getMerchantId() != null) {
_hashCode += getMerchantId().hashCode();
}
if (getSellerId() != null) {
_hashCode += getSellerId().hashCode();
}
if (getQuantity() != null) {
_hashCode += getQuantity().hashCode();
}
if (getTitle() != null) {
_hashCode += getTitle().hashCode();
}
if (getProductGroup() != null) {
_hashCode += getProductGroup().hashCode();
}
if (getPrice() != null) {
_hashCode += getPrice().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(CartItem.class);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "CartItem"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("cartItemId");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "CartItemId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("ASIN");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "ASIN"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("exchangeId");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "ExchangeId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("merchantId");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "MerchantId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("sellerId");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "SellerId"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("quantity");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "Quantity"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("title");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "Title"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("productGroup");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "ProductGroup"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("price");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "Price"));
elemField.setXmlType(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "Price"));
elemField.setMinOccurs(0);
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 + -