Class ReceivedObject

    • Constructor Detail

      • ReceivedObject

        public ReceivedObject()
        The constructor initializes the date to current time and all the Strings to empty strings.
    • Method Detail

      • setBy

        public void setBy​(String b)
        Set the by slot of this object.
        Parameters:
        b - The identifier for the ACC that received the envelope containing this object.
      • getBy

        public String getBy()
        Retrieve the by slot of this object. This slot identifies the ACC that received the envelope containing this object.
        Returns:
        The value of the by slot of this object, or null if no value was set.
      • setFrom

        public void setFrom​(String f)
        Set the from slot of this object.
        Parameters:
        f - The identifier for the ACC that sent the envelope containing this object.
      • getFrom

        public String getFrom()
        Retrieve the from slot of this object. This slot identifies the ACC that sent the envelope containing this object.
        Returns:
        The value of the from slot of this object, or null if no value was set.
      • setDate

        public void setDate​(Date d)
        Set the date slot of this object.
        Parameters:
        d - The date when the envelope containing this object was sent.
      • getDate

        public Date getDate()
        Retrieve the date slot of this object. This slot identifies the date when the envelope containing this object was sent.
        Returns:
        The value of the date slot of this object, or null if no value was set.
      • setId

        public void setId​(String i)
        Set the id slot of this object.
        Parameters:
        i - A unique id for the envelope containing this object.
      • getId

        public String getId()
        Retrieve the id slot of this object. This slot uniquely identifies the envelope containing this object.
        Returns:
        The value of the id slot of this object, or null if no value was set.
      • setVia

        public void setVia​(String v)
        Set the via slot of this object.
        Parameters:
        v - The name of the MTP over which the envelope containing this object was sent.
      • getVia

        public String getVia()
        Retrieve the via slot of this object. This slot describes the MTP over which the envelope containing this object was sent.
        Returns:
        The value of the via slot of this envelope, or null if no value was set.
      • toString

        public String toString()
        Retrieve a string representation for this received object.
        Overrides:
        toString in class Object
        Returns:
        an SL0-like String representation of this object