|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avalara.avatax.services.tax.ArrayOfLine
public class ArrayOfLine
A wrapper object used by Axis to encapsulate an array of zero or more Line
objects
for SOAP transmission via the Web.
Note: The internally kept Line 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] ArrayOfLine lines = getTaxRequest.getLines(); if (lines != null) { Line[] lineArr = lines.getLine(); BigDecimal total = new BigDecimal("0.00"); for (int i = 0; i < lineArr.length; i++) { Line line = lineArr[i]; total = total.add(line.getAmount()); } System.out.println("Total is " + total); }A collection of zero or more
Line
objects.
GetTaxRequest
,
Serialized FormConstructor Summary | |
---|---|
ArrayOfLine()
Initializes a new instance of the class with an empty array of Line objects. |
|
ArrayOfLine(int size)
Initializes a new instance of the class and and its internal array size. |
|
ArrayOfLine(Line[] line)
Initializes a new instance of the class and its internal array of Line objects. |
Method Summary | |
---|---|
int |
add(Line 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. |
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. |
Line[] |
getLine()
Retrieves the raw array of Line objects encapsulated in
this object. |
Line |
getLine(int i)
Retrieves the ith Line object (counting from 0) from the array
of Lines encapsulated in this object. |
Line |
getLine(java.lang.String no)
Retrieves the Line object identified by "no" from the array
of Lines encapsulated in this object. |
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 |
setLine(int i,
Line _value)
Allows one to replace the ith Line object (counting from 0) within the array
of Lines encapsulated in this object. |
void |
setLine(Line[] line)
Allows one to programatically set the raw array of Line 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 |
---|
public ArrayOfLine()
Line
objects.
public ArrayOfLine(Line[] line)
Line
objects.
line
- public ArrayOfLine(int size)
Line
objects.
size
- Method Detail |
---|
public Line[] getLine()
Line
objects encapsulated in
this object.
public void setLine(Line[] line)
Line
objects
encapsulated by this object.
line
- public Line getLine(int i)
Line
object (counting from 0) from the array
of Lines encapsulated in this object. Should only be used if its known
that getLine()
returns a non-null value and that i < number of Lines
actually in that array.
i
- integer from 0 to (number of Lines -1)
public void setLine(int i, Line _value)
Line
object (counting from 0) within the array
of Lines encapsulated in this object. Should only be used if its known
that getLine()
returns a non-null value and that i < number of Lines
actually in that array.
i
- integer from 0 to (number of Lines -1)_value
- Line object to place in the indicated position of the
Line 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(Line address)
address
-
public Line getLine(java.lang.String no)
Line
object identified by "no" from the array
of Lines encapsulated in this object.
no
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |