|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avalara.avatax.services.address.BaseResult
com.avalara.avatax.services.address.ValidateResult
public class ValidateResult
Contains an ArrayOfValidAddress
object returned by AddressSvcSoap.validate(com.avalara.avatax.services.address.ValidateRequest)
Example: [Java] EngineConfiguration config = new FileProvider("avatax4j.wsdd"); AddressSvcLocator addressSvcLoc = new AddressSvcLocator(config); AddressSvcSoap svc = addressSvcLoc.getAddressSvcSoap(new URL("http://www.avalara.com/services/")); // Set the profile Profile profile = new Profile(); profile.setClient("AddressSvcTest,4.0.0.0"); svc.setProfile(profile); // Set security Security security = new Security(); security.setAccount("account"); security.setLicense("license number"); svc.setSecurity(security); Address address = new Address(); address.setLine1("900 Winslow Way"); address.setCity("Bainbridge Island"); address.setRegion("WA"); address.setPostalCode("98110"); ValidateRequest validateRequest = new ValidateRequest(); validateRequest.setAddress(address); validateRequest.setTextCase(TextCase.Upper); ValidateResult result = svc.validate(validateRequest); ArrayOfValidAddress arrValids = result.getValidAddresses(); int numAddresses = (arrValids == null || arrValids.getValidAddress() == null ? 0 : arrValids.getValidAddress().length); System.out.println("Number of Addresses is " + numAddresses);
ArrayOfValidAddress
,
ValidAddress
,
Serialized FormConstructor Summary | |
---|---|
ValidateResult()
Initializes a new instance of the class. |
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. |
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. |
ArrayOfValidAddress |
getValidAddresses()
Provides access to the ArrayOfValidAddress wrapper object, containing an array of
ValidAddress objects. |
int |
hashCode()
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
boolean |
isTaxable()
Gets the taxable value for this ValidateResult. |
void |
setTaxable(boolean taxable)
Sets the taxable value for this ValidateResult. |
void |
setValidAddresses(ArrayOfValidAddress validAddresses)
Provides access to the ArrayOfValidAddress wrapper object, containing an array of
ValidAddress objects. |
Methods inherited from class com.avalara.avatax.services.address.BaseResult |
---|
getMessages, getResultCode, getTransactionId, setMessages, setResultCode, setTransactionId |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidateResult()
Method Detail |
---|
public ArrayOfValidAddress getValidAddresses()
ArrayOfValidAddress
wrapper object, containing an array of
ValidAddress
objects.
public void setValidAddresses(ArrayOfValidAddress validAddresses)
ArrayOfValidAddress
wrapper object, containing an array of
ValidAddress
objects.
validAddresses
- public boolean isTaxable()
public void setTaxable(boolean taxable)
taxable
- public boolean equals(java.lang.Object obj)
equals
in class BaseResult
obj
-
public int hashCode()
hashCode
in class BaseResult
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
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |