Class PropertyReadResult

  • All Implemented Interfaces:
    java.io.Serializable

    public class PropertyReadResult
    extends java.lang.Object
    implements java.io.Serializable
    Transport object defining a result od property read - contains information about property read status and it's value (if read ended successfully).
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int READ_STATUS_ERROR
      An error occurred while processing property expression
      static int READ_STATUS_RESTRICTED
      Property read could not be executed because of read restrictions
      static int READ_STATUS_SUCCESS
      Property read ended successfully
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyReadResult​(int status)
      Constructor for failed property read
      PropertyReadResult​(java.lang.Object value)
      Constructor for successful read
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getStatus()
      Gets property read status
      <T extends java.io.Serializable>
      T
      getValue()  
      boolean isRestricted()  
      boolean isSuccessful()  
      • Methods inherited from class java.lang.Object

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

      • READ_STATUS_SUCCESS

        public static final int READ_STATUS_SUCCESS
        Property read ended successfully
        See Also:
        Constant Field Values
      • READ_STATUS_RESTRICTED

        public static final int READ_STATUS_RESTRICTED
        Property read could not be executed because of read restrictions
        See Also:
        Constant Field Values
      • READ_STATUS_ERROR

        public static final int READ_STATUS_ERROR
        An error occurred while processing property expression
        See Also:
        Constant Field Values
    • Constructor Detail

      • PropertyReadResult

        public PropertyReadResult​(int status)
        Constructor for failed property read
        Parameters:
        status - read status describing failure reason
        See Also:
        READ_STATUS_RESTRICTED, READ_STATUS_ERROR
      • PropertyReadResult

        public PropertyReadResult​(java.lang.Object value)
        Constructor for successful read
        Parameters:
        value - property value
        See Also:
        READ_STATUS_SUCCESS
    • Method Detail

      • getValue

        public <T extends java.io.Serializable> T getValue()
      • isSuccessful

        public boolean isSuccessful()
      • isRestricted

        public boolean isRestricted()