Package com.ptc.wvs.common.util
Class VSResult
java.lang.Object
com.ptc.wvs.common.util.VSResult
- All Implemented Interfaces:
Serializable
A VSResult is a a class that a method can use to return a complex result
structure to its caller. It contains an indication of the success or failure
of the method as well as an optional array of localizable messages that are
classified by type.
Supported API: true
VSResult result = VSResult.newInstance();
result.addMessage(VSMessage.TYPE_WARNING, "This is warning #1");
System.out.println(result);
Supported API: true
- See Also:
-
Method Summary
-
Method Details
-
isSuccessful
public boolean isSuccessful()Determine if the result is successful.- Returns:
- boolean Return true if successful.
Supported API: true
Extendable: false
-