com.avalara.avatax.services.address
Class BaseResult

java.lang.Object
  extended by com.avalara.avatax.services.address.BaseResult
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
IsAuthorizedResult, PingResult, ValidateResult

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

The base class for result objects that return a ResultCode and Messages collection -- Not creatable.

See Also:
Serialized Form

Constructor Summary
BaseResult()
          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.
 ArrayOfMessage getMessages()
          An array of Message objects returned in an ArrayOfMessage wrapper object.
 SeverityLevel getResultCode()
          Indicates the success (or SeverityLevel) of the operation.
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.
 java.lang.String getTransactionId()
          A unique Transaction ID identifying a specific request/response set.
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 setMessages(ArrayOfMessage messages)
          An array of Message objects returned in an ArrayOfMessage wrapper object.
 void setResultCode(SeverityLevel resultCode)
          Indicates the success (or SeverityLevel) of the operation.
 void setTransactionId(java.lang.String transactionId)
          A unique Transaction ID identifying a specific request/response set.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseResult

public BaseResult()
Initializes a new instance of the class.

Method Detail

getTransactionId

public java.lang.String getTransactionId()
A unique Transaction ID identifying a specific request/response set. This ID is useful when contacting Avalara Support with a question or problem concerning a transaction or group of transactions.

Returns:
transactionId

setTransactionId

public void setTransactionId(java.lang.String transactionId)
A unique Transaction ID identifying a specific request/response set. This ID is useful when contacting Avalara Support with a question or problem concerning a transaction or group of transactions.

Parameters:
transactionId -

getResultCode

public SeverityLevel getResultCode()
Indicates the success (or SeverityLevel) of the operation. If there are one or more Message objects in the result, the ResultCode is set to the most severe of the messages' result codes.
 Example:
 [Java]
 if (result.getResultCode().equals(SeverityLevel.Success))
 {
     Message[] messages = getTaxResult.getMessages().getMessage();
     int numMessages = (messages == null ? 0 : messages.length);
     for (int i = 0; i < numMessages; i++)
     {
         Message message = messages[i];
         System.out.println("Message " + i + ":" + message.getName());
     }
 }

Returns:
resultCode

setResultCode

public void setResultCode(SeverityLevel resultCode)
Indicates the success (or SeverityLevel) of the operation. If there are one or more Message objects in the result, the ResultCode is set to the most severe of the messages' result codes.
 Example:
 [Java]
 if (result.getResultCode().equals(SeverityLevel.Success))
 {
     Message[] messages = getTaxResult.getMessages().getMessage();
     int numMessages = (messages == null ? 0 : messages.length);
     for (int i = 0; i < numMessages; i++)
     {
         Message message = messages[i];
         System.out.println("Message " + i + ":" + message.getName());
     }
 }

Parameters:
resultCode -

getMessages

public ArrayOfMessage getMessages()
An array of Message objects returned in an ArrayOfMessage wrapper object.
 Example:
 [Java]
 if (result.getResultCode().equals(SeverityLevel.Success))
 {
     Message[] messages = getTaxResult.getMessages().getMessage();
     int numMessages = (messages == null ? 0 : messages.length);
     for (int i = 0; i < numMessages; i++)
     {
         Message message = messages[i];
         System.out.println("Message " + i + ":" + message.getName());
     }
 }

Returns:
messages
See Also:
getResultCode()

setMessages

public void setMessages(ArrayOfMessage messages)
An array of Message objects returned in an ArrayOfMessage wrapper object.
 Example:
 [Java]
 if (result.getResultCode().equals(SeverityLevel.Success))
 {
     Message[] messages = getTaxResult.getMessages().getMessage();
     int numMessages = (messages == null ? 0 : messages.length);
     for (int i = 0; i < numMessages; i++)
     {
         Message message = messages[i];
         System.out.println("Message " + i + ":" + message.getName());
     }
 }

Parameters:
messages -
See Also:
getResultCode()

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