Class VSResult

java.lang.Object
com.ptc.wvs.common.util.VSResult
All Implemented Interfaces:
Serializable

public class VSResult extends Object implements 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. VSResult result = VSResult.newInstance(); result.addMessage(VSMessage.TYPE_WARNING, "This is warning #1"); System.out.println(result);

Supported API: true
See Also:
  • Method Details

    • isSuccessful

      public boolean isSuccessful()
      Determine if the result is successful.
      Returns:
      boolean Return true if successful.

      Supported API: true

      Extendable: false