com.avalara.avatax.services.tax
Class ArrayOfTaxLine

java.lang.Object
  extended by com.avalara.avatax.services.tax.ArrayOfTaxLine
All Implemented Interfaces:
java.io.Serializable

public class ArrayOfTaxLine
extends java.lang.Object
implements java.io.Serializable

A wrapper object used by Axis to encapsulate an array of zero or more TaxLine objects for SOAP transmission via the Web. Note: The internally kept TaxLine array is not guaranteed to be properly initialized (this is generally true for Axis ArrayOfX wrapper objects); one should always test that it is not null before using.

 Example:
 [Java]
 if (taxResult.getTaxLines() !=null &&
         taxResult.getTaxLines().getTaxLine() != null &&
         taxResult.getTaxLines().getTaxLine().length > 0)
 {

     TaxLine taxLine = taxResult.getTaxLines().getTaxLine(0);
     System.out.println("First TaxLine of Result " +
             "has taxable amount = " +
             taxLine.getTaxable() +
             "Exemption =" + taxLine.getExemption());
 }

 

See Also:
GetTaxResult, Serialized Form

Constructor Summary
ArrayOfTaxLine()
          Initializes a new instance of the class with an empty array of TaxLine objects.
ArrayOfTaxLine(TaxLine[] taxLine)
          Initializes a new instance of the classand and its internal array of TaxLine objects.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Determines whether the specified Object is equal to the current Object.
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Axis Custom Deserializer; this method is used internally by the adapter and not intended to be used by external implementation code.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Axis Custom Serializer; this method is used internally by the adapter and not intended to be used by external implementation code.
 TaxLine[] getTaxLine()
          Retrieves the raw array of TaxLine objects encapsulated in this object.
 TaxLine getTaxLine(int i)
          Retrieves the ith TaxLine object (counting from 0) from the array of TaxLines encapsulated in this object.
 TaxLine getTaxLine(java.lang.String no)
          Retrieves the TaxLine object identified by "no" from the array of Lines encapsulated in this object.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return Axis type metadata object; this method is used internally by the adapter and not intended to be used by external implementation code.
 int hashCode()
          Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
 void setTaxLine(int i, TaxLine _value)
          Allows one to replace the ith TaxLine object (counting from 0) within the array of TaxLines encapsulated in this object.
 void setTaxLine(TaxLine[] taxLine)
          Allows one to programatically set the raw array of TaxLine objects encapsulated by this object.
 int size()
          Gets the size of the array.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayOfTaxLine

public ArrayOfTaxLine()
Initializes a new instance of the class with an empty array of TaxLine objects.


ArrayOfTaxLine

public ArrayOfTaxLine(TaxLine[] taxLine)
Initializes a new instance of the classand and its internal array of TaxLine objects.

Parameters:
taxLine -
Method Detail

getTaxLine

public TaxLine[] getTaxLine()
Retrieves the raw array of TaxLine objects encapsulated in this object.

Returns:
TaxLine warning this may be null, depending on how the object was initialized.

setTaxLine

public void setTaxLine(TaxLine[] taxLine)
Allows one to programatically set the raw array of TaxLine objects encapsulated by this object.

Parameters:
taxLine -

getTaxLine

public TaxLine getTaxLine(int i)
Retrieves the ith TaxLine object (counting from 0) from the array of TaxLines encapsulated in this object. Should only be used if its known that getTaxLine() returns a non-null value and that i < number of TaxLines actually in that array.

Parameters:
i - integer from 0 to (number of TaxLines -1)
Returns:
TaxLine

setTaxLine

public void setTaxLine(int i,
                       TaxLine _value)
Allows one to replace the ith TaxLine object (counting from 0) within the array of TaxLines encapsulated in this object. Should only be used if its known that getTaxLine() returns a non-null value and that i < number of TaxLines actually in that array.

Parameters:
i - integer from 0 to (number of TaxLines -1)
_value - TaxLine object to place in the indicated position of the BaseAddress array

equals

public boolean equals(java.lang.Object obj)
Determines whether the specified Object is equal to the current Object. Note: In current implementation all Java Strings members of the two objects must be exactly alike, including in case, for equal to return true.

Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:
true or false, indicating if the two objects are equal.

hashCode

public int hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

Overrides:
hashCode in class java.lang.Object
Returns:
hash code for this GetTaxRequest object
See Also:
Object.hashCode()

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return Axis type metadata object; this method is used internally by the adapter and not intended to be used by external implementation code.

Returns:
Type Description

getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)
Get Axis Custom Serializer; this method is used internally by the adapter and not intended to be used by external implementation code.

Parameters:
mechType -
_javaType -
_xmlType -
Returns:
Serializer

getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)
Get Axis Custom Deserializer; this method is used internally by the adapter and not intended to be used by external implementation code.

Parameters:
mechType -
_javaType -
_xmlType -
Returns:
Deserializer

size

public int size()
Gets the size of the array.

Returns:
size

getTaxLine

public TaxLine getTaxLine(java.lang.String no)
Retrieves the TaxLine object identified by "no" from the array of Lines encapsulated in this object.

Parameters:
no -
Returns:
TaxLine if found, else null