lij.runtime
Class Letter

java.lang.Object
  extended by lij.runtime.Letter

public class Letter
extends java.lang.Object

Encapsulates the data described by an LCC message.

Author:
Nikolaos Chatzinikolaou

Field Summary
private  java.io.Serializable[] payload
           
private  LetterPostData postData
           
 
Constructor Summary
Letter(LetterPostData _postData, java.io.Serializable[] _payload)
          Constructor.
 
Method Summary
 java.io.Serializable[] getPayload()
          Accessor.
 LetterPostData getPostData()
          Accessor.
 boolean matches(LetterPostData other)
          Compares the LetterPostData object of this Letter with another for a match.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

postData

private LetterPostData postData

payload

private java.io.Serializable[] payload
Constructor Detail

Letter

public Letter(LetterPostData _postData,
              java.io.Serializable[] _payload)
Constructor.

Parameters:
_postData - The post data.
_payload - The payload data in the message.
Method Detail

getPostData

public LetterPostData getPostData()
Accessor.

Returns:
The post data in the message.

getPayload

public java.io.Serializable[] getPayload()
Accessor.

Returns:
The payload data in the message.

matches

public boolean matches(LetterPostData other)
Compares the LetterPostData object of this Letter with another for a match.

Parameters:
other - The LetterPostData object to compare against.
Returns:
True, if this Letter's LetterPostData object matches the other LetterPostData object; false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object