1.0.0

org.eclipse.soda.dk.message
Class FilterMessage

java.lang.Object
  extended by org.eclipse.soda.dk.message.Message
      extended by org.eclipse.soda.dk.message.FilterMessage
All Implemented Interfaces:
java.lang.Cloneable, MessageService
Direct Known Subclasses:
ParameterMessage

public class FilterMessage
extends Message

The FilterMessage class implements the MessageService interface.

Version:
1.0.0
See Also:
Message, Cloneable, FilterService, MessageService, ParameterService

Field Summary
 
Fields inherited from interface org.eclipse.soda.dk.message.service.MessageService
HIGH_PRIORITY, LOW_PRIORITY, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, STRING, THREAD_PRIORITY
 
Constructor Summary
FilterMessage(byte[] data)
          Constructs an instance of this class from the specified data parameter.
FilterMessage(byte[] data, FilterService filter)
          Constructs an FilterMessage object using the input parameter(s).
 
Method Summary
 FilterService getFilter()
          Gets the FilterService filter property value.
 MessageService matches(MessageService message)
          Perform the matches method and return the boolean result.
protected  void setFilter(FilterService filter)
          Sets the filter property.
 
Methods inherited from class org.eclipse.soda.dk.message.Message
clone, decodeMessage, decodeMessage, encodeMessage, encodeMessage, equals, get, getBoolean, getByte, getBytes, getData, getDataBytes, getDataLength, getDataOffset, getInt, getIntByte, getIntByte, getKey, getLittleEndianInt, getLittleEndianLong, getLong, getLongByte, getLongByte, getParameter, getPriority, getShort, hashCode, isBigEndian, length, lookup, put, setBoolean, setByte, setBytes, setData, setInt, setLong, setShort, toString, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilterMessage

public FilterMessage(byte[] data)
Constructs an instance of this class from the specified data parameter.

Parameters:
data - The data (byte[]) parameter.
See Also:
FilterMessage(byte[],FilterService)

FilterMessage

public FilterMessage(byte[] data,
                     FilterService filter)
Constructs an FilterMessage object using the input parameter(s).

Parameters:
data - byte[]
filter - org.eclipse.soda.dk.filter.service.FilterService
See Also:
FilterMessage(byte[])
Method Detail

getFilter

public FilterService getFilter()
Gets the FilterService filter property value.

Returns:
Results of the get filter (FilterService) value.
See Also:
setFilter(FilterService)

matches

public MessageService matches(MessageService message)
Perform the matches method and return the boolean result.

Specified by:
matches in interface MessageService
Overrides:
matches in class Message
Parameters:
message - org.eclipse.soda.dk.message.service.MessageService
Returns:
MessageService Returns any message that matches or NULL.
See Also:
MessageService.matches(org.eclipse.soda.dk.message.service.MessageService)

setFilter

protected void setFilter(FilterService filter)
Sets the filter property.

Parameters:
filter - The new property value (org.eclipse.soda.dk.filter.service.FilterService).
See Also:
getFilter()

1.0.0

Copyright (c) 1999, 2007 IBM