Blame | Last modification | View Log | RSS feed
/*** AdditionalLabelsDetail.java** This file was auto-generated from WSDL* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.*/package com.fedex.ship.stub;/*** Specifies additional labels to be produced. All required labels* for shipments will be produced without the need to request additional* labels. These are only available as thermal labels.*/public class AdditionalLabelsDetail implements java.io.Serializable {/* The type of additional labels to return. */private com.fedex.ship.stub.AdditionalLabelsType type;/* The number of this type label to return */private org.apache.axis.types.NonNegativeInteger count;public AdditionalLabelsDetail() {}public AdditionalLabelsDetail(com.fedex.ship.stub.AdditionalLabelsType type,org.apache.axis.types.NonNegativeInteger count) {this.type = type;this.count = count;}/*** Gets the type value for this AdditionalLabelsDetail.** @return type * The type of additional labels to return.*/public com.fedex.ship.stub.AdditionalLabelsType getType() {return type;}/*** Sets the type value for this AdditionalLabelsDetail.** @param type * The type of additional labels to return.*/public void setType(com.fedex.ship.stub.AdditionalLabelsType type) {this.type = type;}/*** Gets the count value for this AdditionalLabelsDetail.** @return count * The number of this type label to return*/public org.apache.axis.types.NonNegativeInteger getCount() {return count;}/*** Sets the count value for this AdditionalLabelsDetail.** @param count * The number of this type label to return*/public void setCount(org.apache.axis.types.NonNegativeInteger count) {this.count = count;}private java.lang.Object __equalsCalc = null;public synchronized boolean equals(java.lang.Object obj) {if (!(obj instanceof AdditionalLabelsDetail)) return false;AdditionalLabelsDetail other = (AdditionalLabelsDetail) obj;if (obj == null) return false;if (this == obj) return true;if (__equalsCalc != null) {return (__equalsCalc == obj);}__equalsCalc = obj;boolean _equals;_equals = true &&((this.type==null && other.getType()==null) ||(this.type!=null &&this.type.equals(other.getType()))) &&((this.count==null && other.getCount()==null) ||(this.count!=null &&this.count.equals(other.getCount())));__equalsCalc = null;return _equals;}private boolean __hashCodeCalc = false;public synchronized int hashCode() {if (__hashCodeCalc) {return 0;}__hashCodeCalc = true;int _hashCode = 1;if (getType() != null) {_hashCode += getType().hashCode();}if (getCount() != null) {_hashCode += getCount().hashCode();}__hashCodeCalc = false;return _hashCode;}// Type metadataprivate static org.apache.axis.description.TypeDesc typeDesc =new org.apache.axis.description.TypeDesc(AdditionalLabelsDetail.class, true);static {typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AdditionalLabelsDetail"));org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("type");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Type"));elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AdditionalLabelsType"));elemField.setNillable(false);typeDesc.addFieldDesc(elemField);elemField = new org.apache.axis.description.ElementDesc();elemField.setFieldName("count");elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Count"));elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));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) {returnnew 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) {returnnew org.apache.axis.encoding.ser.BeanDeserializer(_javaType, _xmlType, typeDesc);}}