Class MethodResult


  • public class MethodResult
    extends java.lang.Object
    The MethodResult conveys the return value of one of the activate, modify, and deactivate methods.

    Note that the method returning null or being defined as void is not the same thing. If the method returns null an instance of this class is returned whose getResult() method returns null. If the method is defined as void the special instance VOID is returned.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean hasResult  
      static MethodResult REACTIVATE
      Predefined instance indicating to reactivate the component.
      private java.util.Map<java.lang.String,​java.lang.Object> result
      The actual result from the method, which may be null.
      static MethodResult VOID
      Predefined instance indicating a successful call to a void method.
    • Constructor Summary

      Constructors 
      Constructor Description
      MethodResult​(boolean hasResult, java.util.Map<java.lang.String,​java.lang.Object> result)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getResult()  
      boolean hasResult()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • VOID

        public static final MethodResult VOID
        Predefined instance indicating a successful call to a void method.
      • REACTIVATE

        public static final MethodResult REACTIVATE
        Predefined instance indicating to reactivate the component.
      • result

        private final java.util.Map<java.lang.String,​java.lang.Object> result
        The actual result from the method, which may be null.
      • hasResult

        private final boolean hasResult
    • Constructor Detail

      • MethodResult

        public MethodResult​(boolean hasResult,
                            java.util.Map<java.lang.String,​java.lang.Object> result)
    • Method Detail

      • hasResult

        public boolean hasResult()
      • getResult

        public java.util.Map<java.lang.String,​java.lang.Object> getResult()