|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avalara.avatax.services.tax.ArrayOfBaseAddress
public class ArrayOfBaseAddress
A wrapper object used by Axis to encapsulate an array of zero or more BaseAddress
objects
for SOAP transmission via the Web as part of a GetTaxRequest
object.
Example: [Java] ArrayOfBaseAddress addrArray = getTaxRequest.getAddresses(); if (addrArray != null) { BaseAddress[] addresses = addrArray.getBaseAddress(); if (addresses != null) { for (int i = 0, n= addresses.length; i < n; i++) { System.out.println("Address " + i + " Line 1 = " + addresses[i].getLine1()); } } }
GetTaxRequest.getAddresses()
,
Serialized FormConstructor Summary | |
---|---|
ArrayOfBaseAddress()
Initializes a new instance of the class with an empty array of BaseAddress objects. |
|
ArrayOfBaseAddress(BaseAddress[] baseAddress)
Initializes a new instance of the classand and its internal array of BaseAddress objects. |
|
ArrayOfBaseAddress(int size)
Initializes a new instance of the class and and its internal array size. |
Method Summary | |
---|---|
int |
add(BaseAddress address)
Adds an item to the array, resizing it as needed. |
boolean |
equals(java.lang.Object obj)
Determines whether the specified Object is equal to the current Object. |
BaseAddress[] |
getBaseAddress()
Retrieves the raw array of BaseAddress objects encapsulated in
this object. |
BaseAddress |
getBaseAddress(int i)
Retrieves the ith BaseAddress object (counting from 0) from the array
of BaseAddresses encapsulated in this object. |
BaseAddress |
getBaseAddress(java.lang.String addressCode)
Retrieves the BaseAddress object identified by addressCode from the array
of BaseAddresses encapsulated in this 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. |
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 |
setBaseAddress(BaseAddress[] baseAddress)
Allows one to programatically set the raw array of BaseAddress objects
encapsulated by this object. |
void |
setBaseAddress(int i,
BaseAddress _value)
Allows one to replace the ith BaseAddress object (counting from 0) within the array
of BaseAddresses encapsulated in 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 |
---|
public ArrayOfBaseAddress()
BaseAddress
objects.
public ArrayOfBaseAddress(BaseAddress[] baseAddress)
BaseAddress
objects.
baseAddress
- public ArrayOfBaseAddress(int size)
BaseAddress
objects.
size
- Method Detail |
---|
public BaseAddress[] getBaseAddress()
BaseAddress
objects encapsulated in
this object.
public void setBaseAddress(BaseAddress[] baseAddress)
BaseAddress
objects
encapsulated by this object.
baseAddress
- public BaseAddress getBaseAddress(int i)
BaseAddress
object (counting from 0) from the array
of BaseAddresses encapsulated in this object. Should only be used if its known
that getBaseAddress()
returns a non-null value and that i < number of BaseAddresses
actually in that array.
i
- integer from 0 to (number of BaseAddresses -1)
public void setBaseAddress(int i, BaseAddress _value)
BaseAddress
object (counting from 0) within the array
of BaseAddresses encapsulated in this object. Should only be used if its known
that getBaseAddress()
returns a non-null value and that i < number of BaseAddresses
actually in that array.
i
- integer from 0 to (number of BaseAddresses -1)_value
- BaseAddress object to place in the indicated position of the
BaseAddress arraypublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
-
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public static org.apache.axis.description.TypeDesc getTypeDesc()
public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
mechType
- _javaType
- _xmlType
-
public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
mechType
- _javaType
- _xmlType
-
public int size()
public int add(BaseAddress address)
address
-
public BaseAddress getBaseAddress(java.lang.String addressCode)
BaseAddress
object identified by addressCode from the array
of BaseAddresses encapsulated in this object.
addressCode
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |