|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.avalara.avatax.services.tax.BaseResult
public class BaseResult
The base class for result objects that return a ResultCode and Messages collection -- Not creatable.
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 |
---|
public BaseResult()
Method Detail |
---|
public java.lang.String getTransactionId()
public void setTransactionId(java.lang.String transactionId)
transactionId
- public SeverityLevel getResultCode()
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()); } }
public void setResultCode(SeverityLevel resultCode)
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()); } }
resultCode
- public ArrayOfMessage getMessages()
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()); } }
getResultCode()
public void setMessages(ArrayOfMessage messages)
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()); } }
messages
- getResultCode()
public 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
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |