📄 _transactionitem.java
字号:
/**
* _TransactionItem.java
*
* This file was auto-generated from WSDL
* by the Apache Axis WSDL2Java emitter.
*/
package com.amazon.xml.AWSECommerceService;
public class _TransactionItem implements java.io.Serializable {
private java.lang.String transactionItemId;
private java.lang.String quantity;
private com.amazon.xml.AWSECommerceService.Price unitPrice;
private com.amazon.xml.AWSECommerceService.Price totalPrice;
private java.lang.String ASIN;
private com.amazon.xml.AWSECommerceService._TransactionItem_ChildTransactionItems[] childTransactionItems;
public _TransactionItem() {
}
public java.lang.String getTransactionItemId() {
return transactionItemId;
}
public void setTransactionItemId(java.lang.String transactionItemId) {
this.transactionItemId = transactionItemId;
}
public java.lang.String getQuantity() {
return quantity;
}
public void setQuantity(java.lang.String quantity) {
this.quantity = quantity;
}
public com.amazon.xml.AWSECommerceService.Price getUnitPrice() {
return unitPrice;
}
public void setUnitPrice(com.amazon.xml.AWSECommerceService.Price unitPrice) {
this.unitPrice = unitPrice;
}
public com.amazon.xml.AWSECommerceService.Price getTotalPrice() {
return totalPrice;
}
public void setTotalPrice(com.amazon.xml.AWSECommerceService.Price totalPrice) {
this.totalPrice = totalPrice;
}
public java.lang.String getASIN() {
return ASIN;
}
public void setASIN(java.lang.String ASIN) {
this.ASIN = ASIN;
}
public com.amazon.xml.AWSECommerceService._TransactionItem_ChildTransactionItems[] getChildTransactionItems() {
return childTransactionItems;
}
public void setChildTransactionItems(com.amazon.xml.AWSECommerceService._TransactionItem_ChildTransactionItems[] childTransactionItems) {
this.childTransactionItems = childTransactionItems;
}
public com.amazon.xml.AWSECommerceService._TransactionItem_ChildTransactionItems getChildTransactionItems(int i) {
return childTransactionItems[i];
}
public void setChildTransactionItems(int i, com.amazon.xml.AWSECommerceService._TransactionItem_ChildTransactionItems value) {
this.childTransactionItems[i] = value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof _TransactionItem)) return false;
_TransactionItem other = (_TransactionItem) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.transactionItemId==null && other.getTransactionItemId()==null) ||
(this.transactionItemId!=null &&
this.transactionItemId.equals(other.getTransactionItemId()))) &&
((this.quantity==null && other.getQuantity()==null) ||
(this.quantity!=null &&
this.quantity.equals(other.getQuantity()))) &&
((this.unitPrice==null && other.getUnitPrice()==null) ||
(this.unitPrice!=null &&
this.unitPrice.equals(other.getUnitPrice()))) &&
((this.totalPrice==null && other.getTotalPrice()==null) ||
(this.totalPrice!=null &&
this.totalPrice.equals(other.getTotalPrice()))) &&
((this.ASIN==null && other.getASIN()==null) ||
(this.ASIN!=null &&
this.ASIN.equals(other.getASIN()))) &&
((this.childTransactionItems==null && other.getChildTransactionItems()==null) ||
(this.childTransactionItems!=null &&
java.util.Arrays.equals(this.childTransactionItems, other.getChildTransactionItems())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getTransactionItemId() != null) {
_hashCode += getTransactionItemId().hashCode();
}
if (getQuantity() != null) {
_hashCode += getQuantity().hashCode();
}
if (getUnitPrice() != null) {
_hashCode += getUnitPrice().hashCode();
}
if (getTotalPrice() != null) {
_hashCode += getTotalPrice().hashCode();
}
if (getASIN() != null) {
_hashCode += getASIN().hashCode();
}
if (getChildTransactionItems() != null) {
for (int i=0;
i<java.lang.reflect.Array.getLength(getChildTransactionItems());
i++) {
java.lang.Object obj = java.lang.reflect.Array.get(getChildTransactionItems(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(_TransactionItem.class);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", ">TransactionItem"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("transactionItemId");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "TransactionItemId"));
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("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("unitPrice");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "UnitPrice"));
elemField.setXmlType(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "Price"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("totalPrice");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "TotalPrice"));
elemField.setXmlType(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "Price"));
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("childTransactionItems");
elemField.setXmlName(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", "ChildTransactionItems"));
elemField.setXmlType(new javax.xml.namespace.QName("http://xml.amazon.com/AWSECommerceService/2004-08-01", ">TransactionItem>ChildTransactionItems"));
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 + -